/* ── LOGIN WRAPPER ─────────────────────────────────── */
.login-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    width: 100%;
    max-width: 860px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* ── HERO PANEL ─────────────────────────────────── */
.login-hero {
    background-image: url('https://d15v7gz4sgnote.cloudfront.net/finderspage/images/1210441447499977.2tqfMFnmFlxpIRXStr26_height640.png');
    background-size: cover;
    background-repeat: no-repeat;
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.hero-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; }
    50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-subtitle {
    color: white;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.7;
}

/* ── CARD ─────────────────────────────────── */
.login-card {
    flex: 1;
    padding: 36px 32px;
    overflow-y: auto;
    max-height: 90vh;
}

.login-heading {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4px;
    color: #111;
}

.login-subheading {
    font-size: .9rem;
    color: #333;
    text-align: center;
    font-weight: 600;
}

/* ── FIELDS ─────────────────────────────────── */
.field-group { margin-bottom: 16px; }

.field-label {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.field-input {
    width: 100%;
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: .85rem;
    font-family: 'Montserrat', sans-serif;
    color: #222;
    transition: border-color .2s;
    background: white;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary);
}

.field-input.has-error { border-color: var(--error-color); }

.field-error {
    display: block;
    color: var(--error-color);
    font-size: .72rem;
    font-weight: 600;
    margin-top: 4px;
}

.password-wrap { position: relative; }

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 1rem;
    padding: 0;
    transition: color .2s;
}

.toggle-pw:hover { color: var(--primary); }

.password-wrap .field-input { padding-right: 40px; }

/* ── REMEMBER ─────────────────────────────────── */
.remember-row { margin-bottom: 18px; }

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
}

.remember-check {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

/* ── ACTIONS ─────────────────────────────────── */
.action-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.btn-login {
    background: linear-gradient(90deg, var(--primary-dark) 70%, #000 100%);
    color: white;
    border: none;
    border-radius: 28px;
    padding: 6px 28px;
    font-size: .85rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

.btn-login:hover { opacity: .9; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.or-divider {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-top: auto;
    margin-bottom: auto;
}

.btn-google {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 28px;
    padding: 6px 28px;
    font-size: .85rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: opacity .2s;
}

.btn-google:hover { opacity: .9; }

.btn-google i {
    font-size: 18px;
    color: white;
}

/* ── LINKS ─────────────────────────────────── */
.auth-links {
    text-align: center;
    font-size: .78rem;
    color: #555;
    font-weight: 600;
    line-height: 1.9;
}

.link-orange {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.link-orange:hover { text-decoration: underline; }

/* ── SWITCH ACCOUNT ─────────────────────────── */
.switch-account {
    border-top: 1px solid #f0f0f0;
    padding-top: 18px;
}

.switch-title {
    font-size: .85rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.switch-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.switch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    color: white;
    font-size: .78rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.switch-btn:hover { background: #333; }

.switch-avatar {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.switch-name { white-space: nowrap; }

/* Parent item (ensure relative positioning) */
.switch-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Remove button form */
.switch-item form {
    position: absolute;
    top: -6px;
    right: -6px;
    margin: 0;
}

/* Remove button */
.switch-remove {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

/* Icon inside */
.switch-remove i {
    font-size: 12px;
    pointer-events: none;
}

/* Hover effect */
.switch-remove:hover {
    background: #e60023;
    transform: scale(1.1);
}

/* Click effect */
.switch-remove:active {
    transform: scale(0.95);
}

/* ── SUCCESS ALERT ─────────────────────────── */
.alert-success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 640px) {
    .login-wrapper {
        flex-direction: column;
        border-radius: 12px;
        max-height: none;
    }

    .login-hero {
        display: none;
    }

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

    .login-card {
        padding: 24px 20px;
        max-height: none;
    }

    .action-row {
        flex-wrap: wrap;
    }

    .btn-login,
    .btn-google {
        flex: 1;
        justify-content: center;
    }
}
