/* Homepage Specific Styles */

/* Hero Section */
.hero {
    min-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(254, 222, 66, 0.28), transparent 30%),
        linear-gradient(135deg, #005A8B 0%, #0a6fa6 45%, #132245 100%);
    color: var(--secondary-color);
    padding: 32px 20px;
    border-bottom: 4px solid #ffffff;
}

.hero-shell {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
    gap: 2rem;
    align-items: center;
}

.hero-content {
    max-width: 56ch;
    text-align: left;
}

.hero-eyebrow,
.panel-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-eyebrow {
    color: #feef9f;
    margin-bottom: 0.85rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
    color: var(--secondary-color) !important;
}

.hero .btn {
    font-size: 1rem;
    padding: 12px 32px;
}

.hero-benefits {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-benefits span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fef4bb;
    background-color: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
}

.hero-login-panel {
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 90, 139, 0.14);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(19, 34, 69, 0.16);
    backdrop-filter: blur(14px);
    padding: 2rem;
}

.panel-header {
    margin-bottom: 1.2rem;
}

.panel-kicker {
    color: var(--primary-color);
    margin-bottom: 0.55rem;
}

.panel-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.45rem;
}

.panel-header p {
    color: var(--text-light);
    margin: 0;
}

.hero-login-form {
    display: grid;
    gap: 1rem;
    width: min(100%, 360px);
    margin: 0 auto;
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(19, 34, 69, 0.14);
    background-color: #f8fbfd;
    color: var(--text-dark);
    font: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 90, 139, 0.12);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.94rem;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-light);
}

.checkbox-row input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-color);
}

.text-link,
.signup-copy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover,
.signup-copy a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-submit,
.secondary-action {
    width: 100%;
}

.login-submit {
    margin-top: 0.3rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background-color: rgba(19, 34, 69, 0.14);
}

.secondary-action {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(0, 90, 139, 0.18);
}

.secondary-action:hover {
    background-color: rgba(0, 90, 139, 0.06);
    transform: translateY(-2px);
}

.signup-copy {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 22px 28px 28px;
    background-color: transparent;
}

.info-sections {
    background-color: transparent;
    border: none;
    padding-top: 34px;
    padding-bottom: 34px;
    margin-top: 44px;
    margin-bottom: 44px;
}

.info-panel {
    background-color: var(--bg-light);
    border: 1px solid rgba(0, 90, 139, 0.08);
    border-radius: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* About Section */
.about {
    padding: 22px 28px 28px;
    background-color: var(--bg-light);
}

.about-text {
    max-width: 65ch;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.75;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 2rem;
}

.about-card {
    text-align: center;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
}

.about-card p {
    margin: 0;
}

@media (min-width: 992px) {
    .info-sections {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        align-items: stretch;
    }

    .info-sections .features,
    .info-sections .about {
        margin: 0;
        padding: 12px 32px 16px;
        height: 100%;
    }

    .info-sections .section-title {
        margin-bottom: 1.8rem;
    }

    .info-sections .about-text {
        max-width: 60ch;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .features-grid .feature-card,
    .about-grid .feature-card {
        height: 248px;
    }
}

/* Call to Action Section */
.cta {
    padding: 80px 20px;
    background: #005A8B;
    color: var(--secondary-color);
    text-align: center;
    border-top: 4px solid #ffffff;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bg-white) !important;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--secondary-color) !important;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-sections {
        border-radius: 16px;
        padding-top: 24px;
        padding-bottom: 24px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .hero {
        min-height: auto;
        padding: 28px 20px;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .hero-content {
        text-align: center;
        max-width: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.1rem;
    }

    .hero-login-panel {
        padding: 1.3rem;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .features {
        padding: 12px 24px 18px;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .about {
        padding: 12px 24px 18px;
    }

    .cta {
        padding: 60px 20px;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .info-sections {
        border-radius: 14px;
        padding-top: 18px;
        padding-bottom: 18px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .features {
        padding: 10px 18px 16px;
    }

    .hero {
        padding: 24px 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .panel-header h2 {
        font-size: 1.3rem;
    }

    .hero-benefits {
        justify-content: center;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }
}

/* ── Signup / Forgot-password modals ─────────────────────────────────────── */
.signup-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(19, 34, 69, 0.55);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.signup-modal.is-visible {
    display: flex;
}

.signup-modal-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(19, 34, 69, 0.22);
    padding: 2rem 2rem 1.5rem;
    width: min(100%, 480px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.signup-modal-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.25rem;
}

.signup-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.signup-modal-close:hover {
    background: rgba(19, 34, 69, 0.08);
    color: var(--text-dark);
}

.signup-modal-card .form-group {
    margin-bottom: 0.9rem;
}

.signup-modal-card label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.signup-modal-card input,
.signup-select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(19, 34, 69, 0.18);
    background: #f8fbfd;
    font: inherit;
    font-size: 0.92rem;
    color: var(--text-dark);
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.signup-modal-card input:focus,
.signup-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.reset-code-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.auth-helper-text {
    font-size: 0.82rem;
    color: #0f766e;
    margin: 0;
}

.auth-helper-text.is-error {
    color: #b91c1c;
}