/* ── SugarPros — Patient Login ─────────────────────────────────────────── */

.auth-page {
    background: linear-gradient(180deg, #eef6f9 0%, #ffffff 60%);
    padding: 32px 16px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 90px);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(12, 44, 58, 0.12);
    overflow: hidden;
    border: 1px solid #eef1f4;
}
@media (max-width: 900px) {
    .auth-card { grid-template-columns: 1fr; max-width: 480px; }
}

/* ── Left: form column ─────────────────────────────────────────────────── */
.auth-form-col {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 560px) {
    .auth-form-col { padding: 32px 22px; }
}

.auth-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2889aa;
    margin-bottom: 14px;
}

.auth-title { font-size: 1.7rem; font-weight: 700; color: #0c2c3a; margin: 0 0 6px; }
.auth-sub   { font-size: 0.92rem; line-height: 1.55; color: #6b7280; margin: 0 0 24px; }

/* error banner */
.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 0.86rem;
    margin-bottom: 20px;
}
.auth-error i { margin-top: 2px; }

/* fields */
.auth-field { margin-bottom: 18px; }
.auth-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 7px;
}

.auth-input-wrap { position: relative; }

/* fixed left icon area — input padding clears it, no overlap */
.auth-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    pointer-events: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 44px;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    background: #f9fafb;
    font-size: 0.9rem;
    color: #111827;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.auth-input::placeholder { color: #9ca3af; }
.auth-input:focus {
    border-color: #2889aa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40, 137, 170, 0.15);
}
.auth-input-wrap:focus-within .auth-input-icon { color: #2889aa; }

.auth-input.has-toggle { padding-right: 46px; }
.auth-input.is-error { border-color: #f87171; }

/* password show/hide */
.auth-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #9ca3af;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.auth-toggle:hover { background: #f3f4f6; color: #2889aa; }
.auth-toggle:focus-visible { outline: 2px solid rgba(40, 137, 170, 0.4); outline-offset: 1px; }

/* options row */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
    font-size: 0.86rem;
}
.auth-remember { display: flex; align-items: center; gap: 8px; color: #4b5563; cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; accent-color: #2889aa; cursor: pointer; }
.auth-forgot { color: #2889aa; font-weight: 500; text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }

/* primary button */
.auth-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 11px;
    background: #2889aa;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 8px 20px rgba(40, 137, 170, 0.28);
    transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}
.auth-btn:hover { background: #206f8c; box-shadow: 0 10px 26px rgba(40, 137, 170, 0.36); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.auth-btn .spinner { display: none; }
.auth-btn.loading .spinner { display: inline-block; }

/* secondary links */
.auth-alt { text-align: center; font-size: 0.86rem; color: #4b5563; margin: 20px 0 3px; }
.auth-alt a { color: #2889aa; font-weight: 700; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-alt.muted { color: #6b7280; margin-top: 4px; }
.auth-alt.muted a { color: #0c2c3a; font-weight: 600; }

/* trust badges 2x2 */
.auth-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eef1f4;
}
.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    color: #4b5563;
}
.auth-trust-item i {
    color: #16a34a;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ── Right: image column ───────────────────────────────────────────────── */
.auth-img-col {
    position: relative;
    min-height: 100%;
    overflow: hidden;
}
@media (max-width: 900px) {
    .auth-img-col { display: none; }
}
.auth-img-col img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(12, 44, 58, 0.55) 0%, rgba(12, 44, 58, 0.78) 100%);
}
.auth-img-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    color: #fff;
}
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 22px;
}
.auth-img-h { font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin: 0 0 22px; }
.auth-img-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-img-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); }
.auth-img-list li i {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    color: #7fd1e8;
    font-size: 0.85rem;
    flex-shrink: 0;
}
