/* ==========================================
   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; }
}