/* Auth Pages 2026 -- Full Audit v7 */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #0a1e28;
}

/* ================================================================
   Page wrapper
   ================================================================ */

.auth-page-section {
    background-image: url('/static/media/background.9f24aa5e.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px;
}

.auth-page-content {
    width: 94%;
    max-width: 1040px;
}

/* ================================================================
   Card container
   ================================================================ */

.auth-container {
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    min-height: 670px;
}

/* ================================================================
   Left panel -- form (solid white)
   ================================================================ */

.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    max-width: 56%;
}

/* Banner image */
.auth-logo-banner {
    width: 100%;
    height: 192px;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-logo-banner img {
    width: 100%;
    height: 100%;
    object-position: center top;
    display: block;
}

/* Form body */
.auth-form-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 40px 42px;
    flex: 1;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 26px;
    width: 100%;
}

.auth-header h1 {
    color: #032836;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.auth-header p {
    color: #6b8290;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* ================================================================
   Social auth buttons
   ================================================================ */

.auth-social-row {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 420px;
}

.auth-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    background: #fff;
    border: 1px solid #dce1e5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    color: #333;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.auth-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(3, 40, 54, 0.08);
    border-color: #b8c1c8;
    background: #fafbfc;
    text-decoration: none;
    color: #333;
}

.auth-social-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ================================================================
   Divider
   ================================================================ */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 20px 0;
    color: #aab5bc;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8ecee;
}

/* ================================================================
   Form
   ================================================================ */

.auth-form {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.auth-form-row .auth-input-group {
    flex: 1;
    min-width: 0;
}

.auth-input-group {
    position: relative;
    width: 100%;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border: 1px solid #dce1e5;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
    color: #032836;
    background: #f7f8fa;
    outline: none;
    transition: all 0.15s;
}

.auth-input-group input:focus {
    border-color: #032836;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(3, 40, 54, 0.06);
}

.auth-input-group input.input-error {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.06);
}

.auth-input-group input::placeholder {
    color: #9aa8b0;
}

.auth-input-group .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8b0;
    font-size: 20px;
    pointer-events: none;
}

.auth-input-group .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9aa8b0;
    font-size: 20px;
    padding: 2px;
    display: flex;
    align-items: center;
}

.auth-input-group .toggle-password:hover {
    color: #032836;
}

/* Field errors */
.field-error {
    color: #d32f2f;
    font-size: 11px;
    margin-top: 2px;
    padding-left: 2px;
    min-height: 0;
}

.auth-general-error {
    color: #d32f2f;
    font-size: 0.82rem;
    text-align: center;
    width: 100%;
    max-width: 420px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
}

/* ================================================================
   Actions row (forgot password)
   ================================================================ */

.auth-actions-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: -4px;
}

.auth-forgot-link {
    color: #f29322;
    font-size: 0.82rem;
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot-link:hover {
    text-decoration: underline;
    color: #e08419;
}

/* ================================================================
   Submit button
   ================================================================ */

.auth-submit-btn {
    background: #032836;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.2px;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    background: #143B4A;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-submit-btn .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* ================================================================
   Terms / checkbox
   ================================================================ */

.auth-terms {
    color: #8a969d;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.5;
    margin-top: 18px;
    width: 100%;
    max-width: 420px;
}

.auth-terms a {
    color: #f29322;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

.auth-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    font-size: 0.8rem;
    color: #5a7180;
    line-height: 1.4;
}

.auth-terms-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #032836;
    flex-shrink: 0;
}

.auth-terms-check a {
    color: #f29322;
    text-decoration: none;
}

.auth-terms-check a:hover {
    text-decoration: underline;
}

/* ================================================================
   Right panel -- promo (glassmorphism on dark)
   ================================================================ */

.auth-promo-panel {
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('/static/media/rightSideBackground.06ef1dc4.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 56px 36px;
    position: relative;
    overflow: hidden;
}

.auth-promo-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-280deg, rgba(3, 40, 54, 0.15), rgba(3, 40, 54, 0.9));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.auth-promo-panel > div {
    position: relative;
    z-index: 1;
}

.auth-promo-panel h2 {
    color: #f29322;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.2;
}

.auth-promo-panel p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0 0 28px;
}

.auth-promo-btn {
    display: inline-block;
    background: rgba(242, 147, 34, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 13px 40px;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.auth-promo-btn:hover {
    background: #f29322;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 147, 34, 0.35);
}

/* ================================================================
   Responsive -- 1024px (tablet landscape)
   ================================================================ */

@media (max-width: 1024px) {
    .auth-page-content {
        max-width: 920px;
    }

    .auth-logo-banner {
        height: 168px;
    }

    .auth-form-body {
        padding: 34px 32px 38px;
    }

    .auth-promo-panel {
        padding: 48px 28px;
    }

    .auth-promo-panel h2 {
        font-size: 1.9rem;
    }

    .auth-promo-panel p {
        font-size: 1rem;
    }
}

/* ================================================================
   Responsive -- 768px (tablet portrait / stack)
   ================================================================ */

@media (max-width: 768px) {
    .auth-page-section {
        padding: 20px 12px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-page-content {
        width: 100%;
        max-width: 540px;
    }

    .auth-container {
        flex-direction: column;
        border-radius: 20px;
        min-height: auto;
    }

    .auth-form-panel {
        max-width: 100%;
    }

    .auth-logo-banner {
        height: 144px;
    }

    .auth-form-body {
        padding: 28px 28px 34px;
    }

    .auth-header h1 {
        font-size: 1.6rem;
    }

    .auth-header p {
        font-size: 0.85rem;
    }

    .auth-form-row {
        flex-direction: column;
        gap: 12px;
    }

    .auth-promo-panel {
        flex: none;
        min-height: 264px;
        padding: 42px 24px;
    }

    .auth-promo-panel h2 {
        font-size: 1.7rem;
    }

    .auth-promo-panel p {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }

    .auth-promo-btn {
        padding: 12px 32px;
    }
}

/* ================================================================
   Responsive -- 480px (mobile)
   ================================================================ */

@media (max-width: 480px) {
    .auth-page-section {
        padding: 12px 8px;
        padding-top: 24px;
    }

    .auth-page-content {
        width: 100%;
    }

    .auth-container {
        border-radius: 16px;
    }

    .auth-logo-banner {
        height: 108px;
    }

    .auth-form-body {
        padding: 24px 16px 28px;
    }

    .auth-header {
        margin-bottom: 16px;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    .auth-header p {
        font-size: 0.82rem;
    }

    .auth-social-row {
        flex-direction: column;
        gap: 8px;
    }

    .auth-social-btn {
        height: 42px;
    }

    .auth-divider {
        margin: 12px 0;
    }

    .auth-form {
        gap: 10px;
    }

    .auth-input-group input {
        padding: 11px 12px 11px 36px;
        font-size: 0.86rem;
    }

    .auth-input-group .input-icon {
        left: 10px;
        font-size: 18px;
    }

    .auth-submit-btn {
        padding: 12px 20px;
        font-size: 0.88rem;
    }

    .auth-promo-panel {
        min-height: 216px;
        padding: 34px 16px;
    }

    .auth-promo-panel h2 {
        font-size: 1.4rem;
    }

    .auth-promo-panel p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .auth-promo-btn {
        padding: 11px 28px;
        font-size: 0.88rem;
    }
}
