:root {
    --bordeaux: #800020;
    --bleu: #009ee0;
    --txt: #0a0e22;
    --bord: #dddddd;
    --bg: #f4f4f4;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--txt);
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid var(--bord);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
header img { height: 42px; }

/* Layout */
.wrap {
    display: flex;
    min-height: calc(100vh - 62px); /* plein écran – header */
}
.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    color: #fff;
}
.panel h2 {
    margin: 0 0 20px 0;
    letter-spacing: .5px;
    font-weight: 700;
    color: #fff;
}

/* Form */
form { width: 90%; max-width: 380px; }
.field { margin-bottom: 14px; }
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.1);
    font-size: 15px;
}
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
}
.msg {
    margin-top: 8px;
    min-height: 18px;
    font-weight: 600;
    color: #ffd3d3;
}

/* Colors */
.maha { background: var(--bordeaux); }
.automotec { background: var(--bleu); }
.maha button { color: var(--bordeaux); }
.automotec button { color: var(--bleu); }

/* Responsive */
@media (max-width: 780px) {
    .wrap { flex-direction: column; }
}