:root {
    --phdream-primary: #F2C14E;
    --phdream-secondary: #FFD36B;
    --phdream-gradient-button: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --phdream-card-bg: #111111;
    --phdream-background: #0A0A0A;
    --phdream-text-main: #FFF6D6;
    --phdream-border: #3A2A12;
    --phdream-glow: #FFD36B;
    --phdream-dark-text: #333333; /* For light backgrounds */
    --phdream-light-text: #ffffff; /* For dark backgrounds */
}

.page-login {
    color: var(--phdream-text-main); /* Default text color for dark background */
    background-color: var(--phdream-background);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding-top: 10px; /* Small top padding, main offset handled by body in shared.css */
    overflow: hidden;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-top: 80px; /* Adjust as needed to position below header */
    color: var(--phdream-light-text);
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--phdream-secondary);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__tagline {
    font-size: clamp(1em, 1.5vw, 1.25em);
    margin-bottom: 30px;
    color: var(--phdream-text-main);
}

/* Container for consistent content width */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-login__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--phdream-primary);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--phdream-text-main);
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: var(--phdream-background); /* Dark background */
    color: var(--phdream-text-main); /* Light text */
}

.page-login__login-form {
    background-color: var(--phdream-card-bg); /* Card background */
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--phdream-border);
}

.page-login__form-group {
    margin-bottom: 25px;
}

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--phdream-text-main);
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--phdream-border);
    border-radius: 5px;
    background-color: #1a1a1a;
    color: var(--phdream-light-text);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.page-login__login-button {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    background: var(--phdream-gradient-button); /* Custom button gradient */
    color: var(--phdream-light-text);
    border: none;
    cursor: pointer;
}

.page-login__login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-login__form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.95em;
}

.page-login__form-link {
    color: var(--phdream-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__form-link:hover {
    color: var(--phdream-primary);
    text-decoration: underline;
}

.page-login__security-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    background-color: var(--phdream-light-bg); /* Light background for contrast */
    color: var(--phdream-dark-text); /* Dark text for contrast */
}

.page-login__benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__benefit-card {
    background-color: var(--phdream-card-bg); /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--phdream-border);
    color: var(--phdream-text-main); /* Light text */
    transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
}

.page-login__benefit-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: var(--phdream-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__benefit-text {
    font-size: 1em;
    margin-bottom: 20px;
}

/* App Section */
.page-login__app-section {
    padding: 80px 0;
    background-color: var(--phdream-background);
    color: var(--phdream-text-main);
}

.page-login__app-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-login__app-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-login__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-login__app-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--phdream-border);
}

.page-login__app-note {
    margin-top: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    background-color: var(--phdream-light-bg); /* Light background for contrast */
    color: var(--phdream-dark-text); /* Dark text for contrast */
}

.page-login__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-login__faq-item {
    background-color: var(--phdream-card-bg); /* Dark card background */
    border: 1px solid var(--phdream-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--phdream-text-main); /* Light text */
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1a1a1a; /* Slightly lighter dark for question header */
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #2a2a2a;
}

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--phdream-primary);
    font-weight: 600;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--phdream-secondary);
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--phdream-text-main);
}