/* assets/css/auth.css : pages de connexion et de réinitialisation du mot de passe de my.dativo.me. */
:root {
    --forest: #1a3c2c;
    --emerald: #2D7A5F;
    --tender: #5cb88a;
    --dew: #e8f5ec;
    --cream: #fff8f0;
    --terra: #e8884f;
    --gray-text: #4a5568;
    --gray-light: #f7f8fa;
    --gray-border: #e2e8f0;
    --red: #c62828;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background:
        radial-gradient(at 0% 0%,   rgba(92, 184, 138, 0.10) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(232, 136, 79, 0.06) 0%, transparent 50%),
        var(--gray-light);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}
.login-wrap { width: 100%; max-width: 420px; padding: 0 24px; }
.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 38px 32px;
    box-shadow: 0 10px 40px rgba(26, 60, 44, 0.12);
    border: 1px solid var(--dew);
}
.logo { text-align: center; margin-bottom: 28px; }
.logo img { height: 44px; display: inline-block; }
.logo-sub { font-size: 13px; color: var(--gray-text); margin-top: 8px; }
.logo-sub strong { color: var(--emerald); font-weight: 700; }

.quick-login {
    background: var(--dew);
    border: 1.5px solid var(--tender);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    text-align: center;
}
.quick-login .badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700;
    color: var(--forest); text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 10px;
}
.quick-login .badge::before {
    content: "✓"; display: inline-block;
    width: 16px; height: 16px; line-height: 16px;
    border-radius: 50%; background: var(--emerald); color: #fff;
    font-size: 10px; text-align: center;
}
.quick-login p { font-size: 14px; color: var(--forest); margin-bottom: 12px; line-height: 1.4; }
.quick-login p strong { color: var(--emerald); }
.quick-login button {
    width: 100%; padding: 11px 20px; border-radius: 10px;
    font-weight: 600; font-size: 14px; cursor: pointer; border: none;
    background: var(--emerald); color: #fff;
    transition: background .2s, transform .2s;
}
.quick-login button:hover { background: var(--forest); transform: translateY(-1px); }

.sep {
    position: relative; text-align: center; margin: 20px 0;
    font-size: 12px; color: var(--gray-text);
    text-transform: uppercase; letter-spacing: .5px;
}
.sep::before, .sep::after {
    content: ""; position: absolute; top: 50%;
    width: 35%; height: 1px; background: var(--gray-border);
}
.sep::before { left: 0; } .sep::after { right: 0; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--forest); margin-bottom: 6px;
}
.form-group input {
    width: 100%; font-family: inherit;
    font-size: 14.5px; color: var(--forest); background: #fff;
    border: 1.5px solid var(--gray-border); border-radius: 10px;
    padding: 11px 14px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(45, 122, 95, .14);
}
.btn-login {
    display: block; width: 100%;
    padding: 12px 28px; border-radius: 10px;
    font-weight: 600; font-size: 14.5px; cursor: pointer;
    border: none; background: var(--emerald); color: #fff;
    transition: background .2s, transform .2s;
}
.btn-login:hover { background: var(--forest); transform: translateY(-1px); }
.error-msg {
    background: #fde8e8;
    color: var(--red);
    border-left: 4px solid var(--red);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 18px;
}
.footer-text {
    text-align: center;
    font-size: 12px;
    color: var(--gray-text);
    margin-top: 22px;
    opacity: .75;
}

/* Réinitialisation du mot de passe (reset-password.php) */
.success-msg { background: #dcf1e0; color: var(--forest); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.form-hint { font-size: 12px; color: var(--gray-text); margin: -4px 0 16px; line-height: 1.5; }
a.btn-login, a.btn-login:visited { display: block; text-align: center; text-decoration: none; color: #fff; }
.forgot-link-wrap { text-align: center; margin-top: 16px; }
.forgot-link-wrap a, .forgot-link-wrap a:visited { font-size: 13px; color: var(--emerald); text-decoration: none; }
.forgot-block { margin-top: 16px; padding: 16px; background: var(--gray-light); border: 1px solid var(--gray-border); border-radius: 12px; }
.forgot-block input[type="text"] { width: 100%; font-size: 14px; padding: 10px 12px; border: 1.5px solid var(--gray-border); border-radius: 10px; margin-bottom: 10px; box-sizing: border-box; font-family: inherit; }
.forgot-msg { margin-bottom: 10px; }

/* Enrôlement guidé du code de vérification (login.php) */
.enroll-qr { display: flex; justify-content: center; margin: 12px 0 8px; }
.enroll-qr svg { width: 180px; height: 180px; background: #fff; }
.recovery-codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.6; background: #fff; border: 1px solid var(--gray-border); border-radius: 10px; padding: 10px 14px; margin: 10px 0 0; white-space: pre; text-align: center; }
a.btn-login, a.btn-login:visited { text-align: center; text-decoration: none; color: #fff; }

/* Connexion par le compte Infomaniak (OIDC, 18/11/2026) : bouton secondaire à contour, sous « Mot de passe oublié ». */
.oidc-login { margin-top: 20px; }
.btn-oidc, .btn-oidc:visited { display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none;
    padding: 12px 28px; border-radius: 10px; border: 1.5px solid var(--gray-border); background: #fff;
    color: var(--forest); font-weight: 500; font-size: 14.5px; transition: border-color .2s, background .2s; }
.btn-oidc:hover, .btn-oidc:focus-visible { border-color: var(--emerald); background: var(--dew); color: var(--forest); }
.btn-oidc .icon-key { vertical-align: -4px; margin-right: 6px; }
