/* ======================= RESET & BASE ======================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    background: #f3f4f6;
}

/* ======================= AUTH LAYOUT ======================= */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-container {
    max-width: 420px;
    width: 100%;
}

.auth-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 24px 24px 20px;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.auth-subtitle {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    text-align: center;
}

.auth-text {
    font-size: 13px;
    color: #444;
    margin-bottom: 16px;
    text-align: left;
}

.auth-footer {
    margin-top: 16px;
}

.auth-footer-text {
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* ======================= ALERTS ======================= */
.alert {
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
}

/* ======================= FORM ======================= */
.auth-form {
    margin-top: 8px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.form-control {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    outline: none;
    background-color: #fff;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* ======================= PASSWORD TOGGLE ======================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 34px;
}

.btn-icon.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}

.btn-icon.password-toggle.password-visible {
    opacity: 1;
}

/* ======================= BUTTONS ======================= */
.form-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-secondary {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}

.btn-secondary:hover {
    background-color: #d1d5db;
}

/* Keyboard focus visibility */
.btn:focus-visible,
.form-control:focus-visible,
.password-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ======================= CHECKBOX ======================= */
.checkbox-label {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #2563eb;
}
