/* ─── login.css (no :root override) ─── */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #e9edf1;
}

.header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary);
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.header .brand {
    font-weight: bold;
    font-size: 18px;
    color: var(--secondary);
}

.container {
    width: 420px;
    margin: 80px auto;
    background: #ffffff;
    border: 1px solid #cfd6dc;
    padding: 25px;
}

.title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

label {
    font-size: 12px;
    color: #333;
    display: block;
    margin-bottom: 5px;
    margin-top: 12px;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #b7c1cc;
    font-size: 13px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    margin-top: 18px;
    width: 100%;
    padding: 8px;
    background: var(--primary);
    border: 1px solid var(--primary);
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    color: #fff;
}

.btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.links {
    margin-top: 12px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}

.links a {
    color: var(--primary);
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.footer {
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-top: 20px;
}

/* Modal styling consistent with container */
.modal-content {
    background: white;
    width: 400px;
    margin: 100px auto;
    padding: 25px;
    border: 1px solid #cfd6dc;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.modal-content p {
    font-size: 12px;
    color: #666;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    border: 1px solid #b7c1cc;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
}

.modal-buttons .btn {
    width: auto;
    padding: 8px 20px;
    margin: 0;
}

.btn-secondary {
    background: #e0e0e0;
    border: 1px solid #a6a6a6;
    color: #333;
}

.btn-secondary:hover {
    background: #cfcfcf;
}

/* Error / message styling – now uses institution colours with fallback */
.error {
    color: var(--secondary, #c00000);
    margin-bottom: 15px;
}

.message {
    color: var(--primary, #008000);
    margin-bottom: 15px;
}