:root {
    --brand-teal-dark: #02383c;
    --brand-teal-medium: #01464b;
    --brand-teal-title: #005a54;
    --brand-teal-light: #00796b;
    --brand-footer-bg: #01373d;
    --brand-border: #cbd5e1;
    --brand-text-dark: #1e293b;
    --brand-text-muted: #64748b;
    --brand-link: #006660;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--brand-text-dark);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ==========================================================================
   Header Styling
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #edf2f7;
    padding: 14px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--brand-teal-dark);
    gap: 10px;
}

.brand-logo svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-logo-text .line1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--brand-teal-dark);
}

.brand-logo-text .line2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--brand-teal-dark);
}

.nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item-link {
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.nav-item-link:hover {
    color: var(--brand-teal-title);
}

.nav-caret {
    font-size: 10px;
    color: #4a5568;
}

/* Search Pill */
.header-search-wrap {
    position: relative;
    width: 170px;
}

.header-search-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    padding: 6px 34px 6px 14px;
    font-size: 13px;
    outline: none;
    color: #334155;
    background: #ffffff;
}

.header-search-input:focus {
    border-color: var(--brand-teal-title);
}

.header-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 14px;
}

/* Auth Navigation Buttons */
.auth-login-link {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    transition: color 0.2s;
}

.auth-login-link:hover {
    color: var(--brand-teal-title);
}

.btn-join-brand {
    background-color: var(--brand-teal-dark);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
}

.btn-join-brand:hover {
    background-color: var(--brand-teal-medium);
}

/* ==========================================================================
   Main Content & Sign-In Form
   ========================================================================== */
.main-content {
    flex: 1 0 auto;
    padding: 36px 0 60px 0;
}

.signin-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-main-title {
    color: var(--brand-teal-title);
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.page-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0 18px 0;
}

.subtitle-link-row {
    font-size: 14px;
    color: #475569;
    margin-bottom: 24px;
}

.subtitle-link-row a {
    color: var(--brand-link);
    font-weight: 600;
    text-decoration: none;
}

.subtitle-link-row a:hover {
    text-decoration: underline;
}

/* Form Dimensions matching reference layout */
.signin-form-box {
    max-width: 420px;
}

.signin-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.signin-form-row label {
    width: 90px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.signin-form-row .input-wrapper {
    flex: 1;
}

.signin-form-row .form-control {
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 13.5px;
    padding: 7px 12px;
    color: #334155;
    background: #ffffff;
}

.signin-form-row .form-control:focus {
    border-color: var(--brand-teal-title);
    box-shadow: 0 0 0 2px rgba(0, 90, 84, 0.15);
}

.form-action-row {
    padding-left: 90px;
    margin-top: 18px;
    margin-bottom: 22px;
}

.btn-signin-submit {
    background-color: var(--brand-teal-dark);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 7px 26px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-signin-submit:hover {
    background-color: var(--brand-teal-medium);
}

.form-recovery-links {
    margin-top: 18px;
}

.form-recovery-links p {
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 8px;
}

.form-recovery-links a {
    color: var(--brand-link);
    font-weight: 600;
    text-decoration: none;
}

.form-recovery-links a:hover {
    text-decoration: underline;
}

/* Alert Styling */
.custom-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}
.custom-alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.custom-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
.site-footer {
    background-color: var(--brand-footer-bg);
    color: #ffffff;
    padding: 56px 0 32px 0;
    flex-shrink: 0;
}

.footer-col-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 9px;
}

.footer-nav-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.15s;
}

.footer-nav-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Social icons */
.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 40px 0 24px 0;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: opacity 0.2s;
}

.footer-social-icon:hover {
    opacity: 0.8;
    color: #ffffff;
}

.footer-disclaimer-text {
    font-size: 11.5px;
    color: #cbd5e1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 16px auto;
    line-height: 1.6;
}

.footer-bottom-links {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.footer-bottom-links a {
    color: #ffffff;
    font-size: 12.5px;
    text-decoration: underline;
    font-weight: 500;
}

.footer-bottom-links a:hover {
    color: #cbd5e1;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .nav-links-wrap {
        display: none;
    }
    .header-search-wrap {
        display: none;
    }
}

@media (max-width: 576px) {
    .signin-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .signin-form-row label {
        width: 100%;
        margin-bottom: 6px;
    }
    .signin-form-row .input-wrapper {
        width: 100%;
    }
    .form-action-row {
        padding-left: 0;
    }
}

