/* === Login page (mutualisé : login + forgotten_password) === */

.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 20px 0;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
    overflow: hidden;
    animation: loginIn .35s ease;
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* === Header === */

.login-header {
    background: linear-gradient(135deg, #1a2035, #2d3a5a);
    padding: 36px 32px 28px;
    text-align: center;
}

.login-header img {
    height: 40px;
    width: auto;
}

.login-header h1 {
    margin: 20px 0 6px;
    color: #fff;
    font-size: 1.35em;
    font-weight: 700;
}

.login-header p {
    margin: 0;
    color: #a0aec0;
    font-size: .83em;
}

/* === Body === */

.login-body {
    padding: 32px;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: .78em;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .9em;
    color: #2d3748;
    background: #f7fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.login-field input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .15);
}

.login-field .field-errors {
    margin-top: 5px;
}

.login-field .field-errors span {
    font-size: .78em;
    color: #e53e3e;
    display: block;
    margin-top: 4px;
}

/* === Submit button === */

.login-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #5a67d8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .92em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(102, 126, 234, .4);
    transition: all .2s;
    margin-top: 6px;
}

.login-submit:hover {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, .5);
}

.login-submit:active {
    transform: translateY(0);
}

/* === Footer === */

.login-footer {
    text-align: center;
    padding: 0 32px 28px;
}

.login-footer a {
    font-size: .82em;
    color: #718096;
    text-decoration: none;
    transition: color .15s;
}

.login-footer a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* === Info box (forgotten_password, etc.) === */

.info-box {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 9px;
    padding: 11px 14px;
    font-size: .82em;
    color: #2b6cb0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
}

.info-box i {
    margin-top: 2px;
    flex-shrink: 0;
}