/* === ATR Journey — Account Pages === */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #fff;
}

/* ==============================
   Two-column split layout
   ============================== */
.auth-split {
    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 100vh;
}

/* ==============================
   Left brand panel
   ============================== */
.auth-brand {
    background: linear-gradient(155deg, #030b1d 0%, #0b2157 45%, #1a56db 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem;
    position: relative;
    overflow: hidden;
}

    .auth-brand::before {
        content: '';
        position: absolute;
        top: -120px;
        right: -80px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: rgba(96, 165, 250, 0.07);
        pointer-events: none;
    }

    .auth-brand::after {
        content: '';
        position: absolute;
        bottom: -100px;
        left: -60px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(26, 86, 219, 0.18);
        pointer-events: none;
    }

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.brand-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px;
    object-fit: contain;
}

.brand-logo-text .name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.brand-logo-text .sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.brand-headline {
    position: relative;
    z-index: 1;
    margin-bottom: 2.25rem;
}

    .brand-headline h1 {
        font-size: 1.95rem;
        font-weight: 800;
        color: #ffffff;
        line-height: 1.2;
        margin-bottom: 0.85rem;
    }

    .brand-headline p {
        font-size: 0.93rem;
        color: rgba(255, 255, 255, 0.68);
        line-height: 1.7;
        margin: 0;
    }

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

    .brand-features li {
        display: flex;
        align-items: center;
        gap: 14px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.875rem;
    }

.brand-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: #ffffff;
}

.brand-stat-row {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.brand-stat .stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.brand-stat .stat-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ==============================
   Right form panel
   ============================== */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2.5rem 2rem;
    min-height: 100vh;
    overflow-y: auto;
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
}

/* ==============================
   Back link
   ============================== */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.15s;
}

    .auth-back:hover {
        color: #1a56db;
    }

/* ==============================
   Form heading
   ============================== */
.auth-heading {
    margin-bottom: 1.5rem;
}

    .auth-heading h2 {
        font-size: 1.7rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .auth-heading p {
        font-size: 0.875rem;
        color: #6b7280;
        margin: 0;
    }

/* ==============================
   Google button
   ============================== */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

    .btn-google:hover {
        border-color: #1a56db;
        background: #f5f8ff;
        color: #1f2937;
        box-shadow: 0 2px 8px rgba(26, 86, 219, 0.1);
    }

    .btn-google img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

/* ==============================
   Divider
   ============================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 1.1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

/* ==============================
   Bootstrap floating label overrides
   ============================== */
.form-floating > .form-control,
.form-floating > .form-select {
    height: 58px;
    padding: 1.1rem 0.9rem 0.3rem;
    font-size: 0.925rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

    .form-floating > .form-control:focus,
    .form-floating > .form-select:focus {
        border-color: #1a56db;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
        outline: none;
    }

    .form-floating > .form-control[readonly] {
        background: #f3f4f6;
        color: #6b7280;
        cursor: default;
    }

        .form-floating > .form-control[readonly]:focus {
            border-color: #e5e7eb;
            box-shadow: none;
        }

.form-floating > label {
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 0.95rem 0.9rem;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* ==============================
   Password toggle wrapper
   ============================== */
.ff-password {
    position: relative;
}

    .ff-password .form-control {
        padding-right: 2.75rem;
    }

.btn-eye {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 5px;
    font-size: 1.05rem;
    line-height: 1;
    transition: color 0.15s;
    z-index: 6;
}

    .btn-eye:hover {
        color: #1a56db;
    }

/* ==============================
   Remember / forgot row
   ============================== */
.auth-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.auth-check-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.855rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

    .auth-check-label input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: #1a56db;
        cursor: pointer;
        flex-shrink: 0;
    }

/* ==============================
   Links
   ============================== */
.auth-link {
    color: #1a56db;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s;
}

    .auth-link:hover {
        color: #1241a8;
        text-decoration: underline;
    }

/* ==============================
   Submit button
   ============================== */
.btn-auth-submit {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0c2461 0%, #1a56db 100%);
    color: #ffffff;
    font-size: 0.975rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.28);
}

    .btn-auth-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(26, 86, 219, 0.38);
    }

    .btn-auth-submit:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(26, 86, 219, 0.2);
    }

/* ==============================
   Footer text
   ============================== */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* ==============================
   Inline form message label (replaces popups)
   ============================== */
.auth-msg-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

    .auth-msg-label.d-none {
        display: none;
    }

    .auth-msg-label.auth-msg-error {
        background: #fef2f2;
        color: #dc2626;
        border: 1px solid #fecaca;
    }

    .auth-msg-label.auth-msg-success {
        background: #f0fdf4;
        color: #16a34a;
        border: 1px solid #bbf7d0;
    }

/* ==============================
   Success box (forgot password)
   ============================== */
.auth-success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
}

    .auth-success-box .success-icon {
        font-size: 3rem;
        color: #16a34a;
        margin-bottom: 1rem;
        display: block;
    }

/* ==============================
   Responsive
   ============================== */
@media (max-width: 991px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-panel {
        padding: 2rem 1.25rem;
        align-items: flex-start;
        padding-top: 3rem;
    }

    .auth-form-box {
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .auth-heading h2 {
        font-size: 1.5rem;
    }

    .auth-form-panel {
        padding: 2rem 1rem;
    }
}

/* ==============================
   Mobile brand header (sm & md)
   ============================== */
.auth-mobile-header {
    display: none;
    margin-bottom: 1.75rem;
}

.mobile-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mobile-logo-img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    padding: 5px;
    object-fit: contain;
}

.mobile-app-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.mobile-app-sub {
    font-size: 0.65rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

@media (max-width: 991px) {
    .auth-mobile-header {
        display: block;
    }
}

/* ==============================
   Linked platforms
   ============================== */
.linked-platforms {
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    background: #f8faff;
    border: 1.5px solid #e8edf5;
    border-radius: 12px;
}

.lp-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.65rem;
}

.lp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lp-dot {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.lp-name {
    font-size: 0.78rem;
    color: #374151;
    font-weight: 500;
}
