/* ======================================================
   AUTH PAGES (Login / Register)
   ====================================================== */
body.auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, #1a8582 0%, #0d4f4e 55%, #0a3b3a 100%);
}

.auth-wrapper {
    width: 100%;
    max-width: 980px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(6, 34, 33, 0.35);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: authFadeUp 0.5s ease-out;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-panel {
    background: linear-gradient(160deg, #146c6a 0%, #0d4f4e 100%);
    color: #fff;
    padding: 46px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;      
    text-align: center;       
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -80px;
    right: -80px;
}

.auth-panel::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(232, 151, 78, 0.18);
    bottom: -60px;
    left: -40px;
}

.auth-panel img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.auth-panel h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-panel p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-form-side {
    padding: 46px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-side h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    margin-bottom: 2px;
}

.auth-form-side .subtitle {
    color: #77848a;
    font-size: 0.88rem;
    margin-bottom: 22px;
}

.auth-form-side label {
    font-weight: 600;
    font-size: 0.84rem;
    color: #445055;
    margin-bottom: 5px;
}

.auth-form-side .form-control {
    border-radius: 10px;
    height: 46px;
    border: 1px solid #e5eae9;
    font-size: 0.9rem;
}

.auth-form-side .form-control:focus {
    border-color: #146c6a;
    box-shadow: 0 0 0 0.2rem rgba(20, 108, 106, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 0;
    height: 46px;
    margin-top: 27px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #77848a;
}

.password-wrapper.no-label .toggle-password {
    margin-top: 0;
}

.btn-auth {
    height: 46px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    background: #146c6a;
    color: #fff;
    transition: 0.2s ease;
}

.btn-auth:hover {
    background: #0d4f4e;
    color: #fff;
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.88rem;
    color: #445055;
}

.auth-switch a {
    color: #146c6a;
    font-weight: 700;
    text-decoration: none;
}

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

.auth-form-side .alert {
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 10px 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding: 32px 30px;
        flex-direction: row;
        align-items: center;
    }

    .auth-panel::before,
    .auth-panel::after {
        display: none;
    }

    .auth-panel img {
        width: 56px;
        height: 56px;
    }

    .auth-form-side {
        padding: 32px 26px;
    }
}

@media (max-width: 480px) {
    body.auth-body {
        padding: 14px;
    }

    .auth-panel {
        padding: 22px 20px;
    }

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

    .auth-panel p {
        display: none;
    }

    .auth-form-side {
        padding: 26px 18px;
    }
}
