:root {
    --bg: #0b1220;
    --card-bg: #111827;
    --accent: #facc15;
    --accent-soft: rgba(250, 204, 21, 0.12);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --danger: #f87171;

    /* 🔹 INPUTS */
    --input-bg: #e5e7eb;        /* gris clair */
    --input-text: #111827;     /* texte sombre */
    --input-border: #d1d5db;   /* bordure gris clair */
    --input-focus: #facc15;

    --border: #1f2937;
    --radius-lg: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #020617 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 16px;
}

.card {
    background: linear-gradient(145deg, var(--card-bg), #020617);
    border-radius: var(--radius-lg);
    padding: 24px 22px 26px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.09), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.06), transparent 55%);
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 1;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-image img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 8px 18px rgba(0, 0, 0, 0.6);
}

.logo-text span:first-child {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.logo-text span:last-child {
    font-size: 16px;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    margin-bottom: 10px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}

h1 {
    margin: 4px 0 6px;
    font-size: 20px;
}

.subtitle {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
}

.field {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--muted);
}

/* 🔹 INPUTS gris clair */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
    color: #6b7280;
}

input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.4);
}

.actions-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
    font-size: 12px;
}

.link {
    color: var(--accent);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

button[type="submit"] {
    width: 100%;
    border: none;
    margin-top: 6px;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #111827;
}

.error {
    background-color: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: var(--danger);
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 9px;
    margin-bottom: 10px;
}

.footer-text {
    margin-top: 12px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.footer-text strong {
    color: var(--accent);
}
/* ✅ Mobile: rendre la page plus sexy */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 12px;
    }

    .card {
        padding: 22px 18px 22px;
        border-radius: 16px;
    }

    h1 {
        font-size: 22px;
        letter-spacing: 0.2px;
        margin: 6px 0 8px;
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    input[type="email"],
    input[type="password"] {
        font-size: 16px;      /* ✅ évite le zoom iOS + plus lisible */
        padding: 12px 14px;   /* ✅ plus “touch friendly” */
        border-radius: 12px;
    }

    button[type="submit"] {
        padding: 12px 16px;
        font-size: 16px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 10px;
        margin-bottom: 12px;
    }

    .actions-row {
        font-size: 13px;
        margin-top: 6px;
        margin-bottom: 10px;
    }

    .footer-text {
        font-size: 12px;
        line-height: 1.35;
        margin-top: 14px;
    }

    .logo-image img {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .logo-text span:first-child {
        font-size: 12px;
    }

    .logo-text span:last-child {
        font-size: 17px;
    }
}

/* ✅ Très petits écrans */
@media (max-width: 360px) {
    h1 {
        font-size: 20px;
    }
    .subtitle {
        font-size: 13px;
    }
}
