/* Styles page de connexion
   Depend de : kirby.css (univers arriere-plan)
   Utilise par : auth/login.php */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0b0e18;
    color: #c9d1d9;
    min-height: 100vh;
}

/* Kirby en arriere-plan fixe — couvre tout l'ecran */
.kirby-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    min-height: 0;
}

/* ===== LAYOUT ===== */
.login-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 420px;
}

/* ===== LOGIN BOX (meme style que .card du dashboard) ===== */
.login-box {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.login-box h1 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #f0f6fc;
}
.login-box p {
    margin-bottom: 24px;
    color: #7a8599;
    font-size: 14px;
}

/* ===== BOUTON GOOGLE ===== */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.btn-google:hover {
    box-shadow: 0 4px 16px rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.btn-google img {
    width: 20px;
    height: 20px;
}

/* ===== SEPARATEUR ===== */
.separator {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #475569;
    font-size: 13px;
}
.separator::before, .separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(30, 41, 59, 0.6);
}
.separator::before { margin-right: 12px; }
.separator::after { margin-left: 12px; }

/* ===== ADMIN TOGGLE ===== */
.admin-toggle {
    color: #7a8599;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    margin-top: 5px;
    transition: color 0.2s;
}
.admin-toggle:hover { color: #e2e8f0; }

/* ===== FORMULAIRE ADMIN ===== */
.admin-form {
    display: none;
    margin-top: 15px;
}
.admin-form.show { display: block !important; }
.admin-form input {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    background: rgba(10, 14, 24, 0.6);
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.admin-form input:focus {
    border-color: #6c5ce7;
}
.btn-admin {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #6c5ce7, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.btn-admin:hover {
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

/* ===== SETUP FORM ===== */
.setup-form {
    margin-top: 20px;
    text-align: left;
}
.setup-form label {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 4px;
}
.setup-form input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(10, 14, 24, 0.6);
    border: 1px solid rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.setup-form input:focus {
    border-color: #6c5ce7;
}
.btn-setup {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6c5ce7, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: box-shadow 0.2s;
}
.btn-setup:hover {
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

/* ===== MESSAGES ===== */
.error {
    color: #f87171;
    font-size: 13px;
    margin-bottom: 10px;
}
.success {
    color: #22c55e;
    font-size: 14px;
    margin-top: 15px;
}
