/* /assets/css/auth.css - PHOENIX AUTH STYLE */

/* ---------------------------------- */
/* 1. FONDASI & VARIABEL */
/* ---------------------------------- */
:root {
    --brand-primary: #0052D4;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --text-muted: #8492A6;
    --background-light: #F9FAFB;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --error-bg: #FEF2F2;
    --error-text: #DC2626;
    --error-border: #FCA5A5;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --border-radius: 0.75rem; /* 12px */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    background-color: var(--background-light);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* ---------------------------------- */
/* 2. LAYOUT UTAMA & KARTU OTENTIKASI */
/* ---------------------------------- */
.auth-container {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-logo a {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    margin-bottom: 2rem;
}

.auth-card {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.auth-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.auth-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ---------------------------------- */
/* 3. FORM & PESAN ERROR */
/* ---------------------------------- */
.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 212, 0.1);
}

.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #0045B3;
}

.btn-full {
    width: 100%;
}

.error-message {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.9rem;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--brand-primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------- */
/* 4. RESPONSIVE */
/* ---------------------------------- */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem;
    }
}