.signup-page {
    background: #f5f7fb;
    min-height: calc(100vh - 130px);
    padding: 28px 18px;
}

.signup-shell {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(300px, 0.75fr) minmax(560px, 1.25fr);
    margin: 0 auto;
    max-width: 1200px;
}

.signup-brand-panel,
.signup-card {
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.signup-brand-panel {
    background: #101827;
    border: 1px solid #101827;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
    padding: 32px;
}

.signup-brand-logo {
    background: #0b1220;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    display: block;
    height: auto;
    margin: 0 0 28px;
    max-width: 430px;
    padding: 16px 18px;
    width: min(100%, 430px);
}

.brand-kicker,
.signup-kicker {
    color: #f97316;
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.signup-brand-panel h1 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 16px;
}

.brand-copy {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
    margin: 0 0 22px;
}

.brand-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 20px;
}

.brand-metrics span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px 10px;
}

.brand-metrics strong,
.brand-metrics small {
    display: block;
}

.brand-metrics strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.brand-metrics small {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    margin-top: 2px;
}

.brand-points {
    display: grid;
    gap: 10px;
}

.brand-points span {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    color: #f8fafc;
    display: flex;
    font-size: 13px;
    font-weight: 850;
    gap: 10px;
    padding: 11px 12px;
}

.brand-points i {
    color: #f97316;
}

.signup-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    overflow: hidden;
}

.signup-card-top {
    align-items: flex-start;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 24px 28px 18px;
}

.signup-title-block h2 {
    color: #0f172a;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.18;
    margin: 0;
}

.signup-title-block p {
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    margin: 8px 0 0;
    max-width: 560px;
}

.signin-link {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 850;
    gap: 7px;
    min-height: 38px;
    padding: 9px 12px;
    text-decoration: none;
}

.signin-link:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.signup-status-row {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
}

.signup-status-row span {
    align-items: center;
    border-right: 1px solid #e2e8f0;
    color: #334155;
    display: flex;
    font-size: 12px;
    font-weight: 850;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 9px 10px;
    text-align: center;
}

.signup-status-row span:last-child {
    border-right: 0;
}

.signup-status-row i {
    color: #16a34a;
}

.signup-body {
    padding: 22px 28px 26px;
}

.signup-form {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.form-group {
    margin: 0;
}

.form-group label {
    color: #1f2937;
    display: block;
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 7px;
}

.input-group {
    position: relative;
}

.input-icon {
    color: #64748b;
    left: 13px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.input-group input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 650;
    min-height: 46px;
    padding: 11px 42px 11px 38px;
    width: 100%;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.input-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
    outline: none;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
}

.password-toggle:hover {
    color: #f97316;
}

.password-requirements {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px;
}

.password-requirements > span {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.password-requirements ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-requirements li {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 12px;
    font-weight: 750;
    gap: 5px;
}

.password-requirements li.valid {
    color: #166534;
}

.password-requirements li.invalid {
    color: #991b1b;
}

.signup-submit-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 0.8fr) 1fr;
}

.btn-signup {
    align-items: center;
    background: #101827;
    border: 1px solid #101827;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    gap: 9px;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-signup:hover {
    background: #f97316;
    border-color: #f97316;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    transform: translateY(-1px);
}

.signup-submit-row p {
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    margin: 0;
}

.login-options {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px;
}

.remember-option {
    align-items: center;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    gap: 8px;
    margin: 0;
}

.remember-option input {
    accent-color: #101827;
    height: 16px;
    width: 16px;
}

.forgot-link {
    align-items: center;
    color: #0f172a;
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    gap: 6px;
    text-decoration: none;
}

.forgot-link:hover {
    color: #f97316;
}

.login-submit-row {
    grid-template-columns: minmax(220px, 0.65fr) 1fr;
}

.logout-shell {
    align-items: stretch;
    grid-template-columns: minmax(300px, 0.82fr) minmax(440px, 0.9fr);
    max-width: 1040px;
}

.logout-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
    padding: 38px;
    text-align: center;
}

.logout-confirm-icon {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 20px;
    color: #f97316;
    display: flex;
    font-size: 34px;
    height: 82px;
    justify-content: center;
    margin-bottom: 22px;
    width: 82px;
}

.logout-confirm-content h2 {
    color: #0f172a;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.16;
    margin: 0;
}

.logout-confirm-content p {
    color: #64748b;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    margin: 12px auto 0;
    max-width: 420px;
}

.logout-confirm-content strong {
    color: #0f172a;
    font-weight: 900;
}

.logout-security-note {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    display: flex;
    font-size: 13px;
    font-weight: 750;
    gap: 9px;
    line-height: 1.4;
    margin: 24px 0;
    max-width: 480px;
    padding: 12px 14px;
    text-align: left;
}

.logout-security-note i {
    color: #2563eb;
}

.logout-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    max-width: 480px;
    width: 100%;
}

.btn-logout-confirm,
.btn-logout-cancel {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-logout-confirm {
    background: #101827;
    border: 1px solid #101827;
    color: #ffffff;
}

.btn-logout-confirm:hover {
    background: #f97316;
    border-color: #f97316;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    transform: translateY(-1px);
}

.btn-logout-cancel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.btn-logout-cancel:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
}

.social-signup-box {
    background: #fbfdff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 18px;
    padding: 14px;
}

.social-head {
    align-items: flex-end;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.social-head strong,
.social-head span {
    display: block;
}

.social-head strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.social-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    text-align: right;
}

.social-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-provider {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    display: grid;
    font-size: 13px;
    font-weight: 850;
    gap: 2px 8px;
    grid-template-columns: 18px minmax(0, 1fr);
    min-height: 46px;
    padding: 8px 10px;
    text-align: left;
    text-decoration: none;
}

.social-provider i {
    font-size: 15px;
    grid-row: span 2;
}

.social-provider span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-provider small {
    color: #16a34a;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.social-provider.active:hover {
    border-color: #f97316;
    color: #f97316;
}

.social-provider.disabled {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.social-provider.disabled small {
    color: #92400e;
}

.security-note {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 12px;
    font-weight: 650;
    gap: 6px;
    margin: 12px 0 0;
}

.alert {
    align-items: center;
    border-radius: 10px;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.error-message {
    align-items: center;
    color: #991b1b;
    display: flex;
    font-size: 12px;
    font-weight: 750;
    gap: 6px;
    margin-top: 6px;
}

.form-wide {
    background: #fee2e2;
    border-radius: 10px;
    padding: 9px 10px;
}

.auth-state-page {
    display: flex;
    align-items: center;
}

.auth-state-shell {
    grid-template-columns: minmax(320px, 0.78fr) minmax(460px, 0.9fr);
    max-width: 1060px;
}

.auth-state-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
    padding: 38px;
    text-align: center;
}

.auth-state-icon {
    align-items: center;
    border-radius: 18px;
    display: flex;
    font-size: 32px;
    height: 78px;
    justify-content: center;
    margin-bottom: 22px;
    width: 78px;
}

.auth-state-icon.success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.auth-state-icon.warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #f97316;
}

.auth-state-card h2 {
    color: #0f172a;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
    max-width: 560px;
}

.auth-state-card p {
    color: #64748b;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
    margin: 13px auto 0;
    max-width: 560px;
}

.auth-state-card p strong {
    color: #0f172a;
    font-weight: 900;
}

.auth-state-steps {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    max-width: 560px;
    text-align: left;
    width: 100%;
}

.auth-state-steps div {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    padding: 12px 14px;
}

.auth-state-steps strong {
    align-items: center;
    background: #101827;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    flex: 0 0 auto;
    font-size: 13px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.auth-state-steps span {
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.auth-state-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.72fr);
    margin-top: 24px;
    max-width: 560px;
    width: 100%;
}

.auth-confirm-form {
    margin-top: 24px;
    max-width: 320px;
}

.auth-secondary-action {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.auth-secondary-action:hover {
    background: #fff7ed;
    border-color: #fed7aa;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
    color: #c2410c;
    transform: translateY(-1px);
}

.auth-state-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    justify-content: center;
    margin: 20px auto 0;
    max-width: 560px;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

@media (max-width: 1040px) {
    .signup-shell {
        grid-template-columns: 1fr;
        max-width: 820px;
    }

    .signup-brand-panel {
        min-height: auto;
    }
}

@media (max-width: 700px) {
    .signup-page {
        padding: 16px 10px;
    }

    .signup-brand-panel,
    .signup-card-top,
    .signup-body {
        padding: 20px;
    }

    .signup-card-top,
    .social-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .signin-link {
        width: 100%;
        justify-content: center;
    }

    .signup-status-row,
    .form-grid,
    .social-grid,
    .signup-submit-row,
    .login-submit-row,
    .logout-shell,
    .auth-state-shell,
    .logout-actions {
        grid-template-columns: 1fr;
    }

    .signup-status-row span {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .signup-status-row span:last-child {
        border-bottom: 0;
    }

    .password-requirements {
        align-items: flex-start;
        flex-direction: column;
    }

    .password-requirements ul {
        justify-content: flex-start;
    }

    .social-head span {
        text-align: left;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .auth-state-card {
        min-height: auto;
        padding: 28px 20px;
    }

    .auth-state-actions {
        grid-template-columns: 1fr;
    }

    .logout-confirm-content h2 {
        font-size: 25px;
    }
}
