/* =========================================================================
   E-PRESENSI - Auth CSS (halaman login)
   Gaya disamakan dengan dashboard admin (warm off-white SaaS + Plus Jakarta Sans).
   ========================================================================= */

:root {
    --color-primary: #111827;
    --color-primary-dark: #1f2937;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-border-warm: #eae8e3;
    --color-bg: #fdfbf8;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    padding: 20px;
    position: relative;
}

/* Brand kiri-atas (mirip sidebar admin: EP abu-gelap) */
.auth-brand {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
}
.auth-brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--color-border-warm);
    object-fit: cover;
    object-position: center;
    box-shadow: var(--shadow-sm);
    padding: 3px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 400px;
    padding: 40px 36px;
}

.auth-card__brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--color-border-warm);
    object-fit: cover;
    object-position: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    padding: 3px;
}

.auth-card__title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 4px;
}

.auth-card__subtitle {
    color: var(--color-text-muted);
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 14px;
    cursor: pointer;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.auth-remember span {
    font-size: 13px;
    color: var(--color-text-muted);
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.auth-form .form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e0dc;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.auth-form .form-control::placeholder {
    color: #9ca3af;
}

/* Tombol (sama dengan .btn di admin.css) */
.auth-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: var(--color-primary);
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .btn:hover {
    background: var(--color-primary-dark);
}

.auth-form .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-alert--error {
    background: #fef3f2;
    color: #b91c1c;
    border: 1px solid #fee4e2;
}

.auth-alert--success {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #d1fadf;
}

.auth-footer {
    position: fixed;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ---------- Setup Wizard ---------- */
.install-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f3f4f6;
    min-height: 100vh;
    padding: 24px 16px;
}

.install-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.install-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.install-card__subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.install-steps {
    display: flex;
    gap: 8px;
    margin: 0 0 28px;
    list-style: none;
    padding: 0;
}

.install-steps li {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding-top: 24px;
    position: relative;
}

.install-steps li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.install-steps li::after {
    content: attr(data-step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    line-height: 20px;
    z-index: 1;
}

.install-steps li.is-done {
    color: #16a34a;
}

.install-steps li.is-done::before,
.install-steps li.is-done::after {
    background: #16a34a;
    color: #fff;
}

.install-steps li.is-active {
    color: #2563eb;
    font-weight: 600;
}

.install-steps li.is-active::after {
    background: #2563eb;
    color: #fff;
}

.install-body .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.install-body .form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.install-body .form-group {
    margin-bottom: 16px;
}

.install-body label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.system-check {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.system-check__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.system-check__row:last-child {
    border-bottom: none;
}

.system-check__status {
    font-weight: 600;
}

.install-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}