:root {
    --bg: #f4f6f9;
    --card: #ffffff;
    --primary: #2c3e50;
    --accent: #3498db;
    --accent-hover: #2980b9;
    --muted: #95a5a6;
    --success: #27ae60;
    --danger: #e74c3c;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--primary)
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.login-box:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px
}

.brand .logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #6fb6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;

    
}
.brand .logo .jh_logo {
    width: 40px;
    height: 40px;
}
h1 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--primary);
    font-weight: 600
}

p.lead {
    margin: 6px 0 18px;
    color: var(--muted);
    font-size: 0.95rem
}

form {
    display: block
}

.input-group {
    position: relative;
    margin-bottom: 16px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    font-size: 0.98rem;
    background: white;
    box-sizing: border-box;
    color: var(--primary);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.08)
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px
}

.pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem
}

.btn-login {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.12);
    transition: background .15s ease, transform .08s ease;
}

.btn-login:hover {
    background: var(--accent-hover);
    transform: translateY(-1px)
}

.helper {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
    margin-top: 14px
}

.helper a {
    color: var(--accent);
    text-decoration: none
}

.status {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none
}

.status.success {
    background: rgba(39, 174, 96, 0.08);
    color: var(--success);
    display: block
}

.status.error {
    background: rgba(231, 76, 60, 0.08);
    color: var(--danger);
    display: block
}

footer {
    margin-top: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted)
}

/* Styling du select magasin */
.input-group select.input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.input-group select.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group select.input option {
    padding: 10px;
    background: white;
    color: #333;
}

@media (max-width:420px) {
    .login-box {
        padding: 24px
    }
}