/* ==========================================
   Auth — DokterTaman.com
   Path: vendors/auth.css
   ========================================== */

.auth-body {
    background: var(--bg-light, #f9fdf9);
    min-height: 100vh;
    margin: 0;
}

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== SISI KIRI ===== */
.auth-side {
    background: linear-gradient(160deg, #16a34a, #14532d);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -150px; right: -150px;
}
.auth-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px; font-weight: 700;
    color: #fff; text-decoration: none;
    position: relative; z-index: 2;
}
.auth-logo i,
.auth-logo .logo-accent { color: #bbf7d0; }

.auth-side-content {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    max-width: 420px;
    position: relative; z-index: 2;
}
.auth-side-content h1 {
    font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
.auth-side-content h1 .highlight { color: #bbf7d0; }
.auth-side-content p {
    font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,0.85); margin-bottom: 28px;
}
.auth-benefits {
    list-style: none; padding: 0;
    display: flex; flex-direction: column; gap: 14px;
}
.auth-benefits li {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.95);
}
.auth-benefits i { color: #bbf7d0; font-size: 18px; }
.auth-side-foot {
    font-size: 12px; color: rgba(255,255,255,0.6);
    position: relative; z-index: 2;
}

/* ===== SISI KANAN (form) ===== */
.auth-main {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background: #f9fdf9;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff; border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 10px 40px rgba(34,197,94,0.1);
}
.auth-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: #6b7d6f;
    text-decoration: none; margin-bottom: 20px;
    transition: color .2s;
}
.auth-back:hover { color: #16a34a; }
.auth-card h2 {
    font-size: 26px; font-weight: 800;
    color: #1a2e1f; margin: 0 0 6px;
}
.auth-subtitle {
    font-size: 14px; color: #6b7d6f; margin: 0 0 24px;
}

/* Field */
.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: #1a2e1f; margin-bottom: 8px;
}
.auth-input-wrap {
    display: flex; align-items: center;
    border: 2px solid #dcfce7;
    border-radius: 12px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.auth-input-wrap:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.1);
}
.auth-input-wrap > i {
    color: #22c55e; padding: 0 12px 0 16px;
    font-size: 15px; flex-shrink: 0;
}
.auth-input-wrap input {
    flex: 1; border: none; outline: none;
    background: transparent;
    padding: 13px 12px 13px 0;
    font-size: 14px; font-family: inherit;
    color: #1a2e1f;
}
.auth-input-wrap input::placeholder { color: #a3b1a6; }

.toggle-pw {
    background: none; border: none;
    color: #6b7d6f; cursor: pointer;
    padding: 0 16px; font-size: 14px;
    height: 100%; transition: color .2s;
}
.toggle-pw:hover { color: #16a34a; }

/* Error & alert */
.auth-error {
    display: block; color: #dc2626;
    font-size: 12px; margin-top: 6px;
    min-height: 14px;
}
.auth-field.has-error .auth-input-wrap {
    border-color: #fca5a5; background: #fef2f2;
}
.auth-alert {
    padding: 12px 16px; border-radius: 12px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 16px; line-height: 1.5;
}
.auth-alert.error {
    background: #fef2f2; color: #b91c1c;
    border: 1px solid #fecaca;
}
.auth-alert.success {
    background: #f0fdf4; color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Submit */
.auth-submit {
    width: 100%; margin-top: 8px;
    padding: 15px 24px; font-size: 15px;
    border-radius: 12px; border: none; cursor: pointer;
    display: inline-flex; align-items: center;
    justify-content: center; gap: 8px;
}
.auth-submit:disabled {
    opacity: .7; cursor: not-allowed; transform: none !important;
}

/* Switch */
.auth-switch {
    text-align: center; font-size: 14px;
    color: #6b7d6f; margin-top: 20px;
}
.auth-switch a {
    color: #16a34a; font-weight: 600; text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-main { padding: 24px 16px; }
    .auth-card { padding: 28px 22px; }
    .auth-card h2 { font-size: 22px; }
}


/* ==========================================
   MOBILE RESPONSIVE — DOKTERTAMAN AUTH
   ========================================== */

@media (max-width: 900px) {
    html,
    body.auth-body {
        width: 100%;
        min-height: 100%;
        margin: 0;
    }

    .auth-wrap {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        background: #f9fdf9;
    }

    /* Sembunyikan panel desktop */
    .auth-side {
        display: none;
    }

    /* Area form */
    .auth-main {
        flex: 1;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px 20px;
        background: #f9fdf9;
    }

    /* Card login */
    .auth-card {
        width: 100%;
        max-width: 440px;
        box-sizing: border-box;
        padding: 30px 24px;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 8px 30px rgba(34, 197, 94, 0.09);
    }

    

    .auth-back {
        margin-bottom: 22px;
        font-size: 13px;
    }

    .auth-card h2 {
        font-size: 25px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .auth-subtitle {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 26px;
    }

    /* Input */
    .auth-field {
        margin-bottom: 17px;
    }

    .auth-field label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .auth-input-wrap {
        min-height: 50px;
        border-radius: 11px;
    }

    .auth-input-wrap input {
        min-width: 0;
        font-size: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .auth-input-wrap > i {
        font-size: 14px;
    }

    .toggle-pw {
        padding: 0 14px;
    }

    /* Tombol login */
    .auth-submit {
        min-height: 50px;
        margin-top: 10px;
        border-radius: 11px;
        font-size: 14px;
    }

    /* Alert */
    .auth-alert {
        font-size: 12px;
        padding: 11px 13px;
    }

    /* Register link */
    .auth-switch {
        font-size: 13px;
        line-height: 1.6;
        margin-top: 22px;
    }
}

/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 480px) {
    .auth-main {
        align-items: flex-start;
        padding: 24px 16px;
    }

    .auth-card {
        max-width: 100%;
        padding: 26px 20px;
        border-radius: 18px;
    }

    .auth-card::before {
        font-size: 21px;
        margin-bottom: 26px;
    }

    .auth-card h2 {
        font-size: 23px;
    }

    .auth-subtitle {
        font-size: 13px;
    }
}

/* ==========================================
   EXTRA SMALL MOBILE
   ========================================== */

@media (max-width: 360px) {
    .auth-main {
        padding: 18px 12px;
    }

    .auth-card {
        padding: 23px 17px;
    }

    .auth-card h2 {
        font-size: 21px;
    }

    .auth-input-wrap input {
        font-size: 13px;
    }

    .auth-switch {
        font-size: 12px;
    }
}

/* ==========================================
   LANDSCAPE MOBILE
   ========================================== */

@media (max-width: 900px) and (max-height: 500px) {
    .auth-main {
        align-items: flex-start;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .auth-card {
        margin: 0 auto;
    }
}


/* ==========================================
   AUTH MOBILE LOGO - REAL IMAGE
   ========================================== */

.auth-mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    margin: 0 auto 28px;
    color: #15803d;
    text-decoration: none;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.auth-mobile-logo img {
    display: block;
    width: 100px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-mobile-logo span span {
    color: #22c55e;
}

/* Mobile */
@media (max-width: 900px) {
    .auth-mobile-logo {
        display: flex;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .auth-mobile-logo {
        font-size: 21px;
        margin-bottom: 26px;
    }

    .auth-mobile-logo img {
        width: 100px;
        height: 38px;
    }
}
