body {
    font-family: "Poppins", sans-serif;
    background: #F5F7FB;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-container {
    max-width: 420px;
    width: 100%;
    padding: 40px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    color: black;
    font-weight: 600;
    font-size: 22px;
}

.nav-logo svg {
    width: 32px;
    height: 32px;
    color: #5566BA;
}

.auth-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 28px;
    color: #222;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ===========================
   FORM FIELDS
=========================== */

.form-group {
    text-align: left;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.form-group:hover label {
    color: #283856;
}

.required {
    color: #CE4425;
    margin-left: 3px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    top: -1px;
}

.auth-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;

    border: 1px solid rgba(85, 102, 186, 0.25);
    border-radius: 4px;
    outline: none;
    background-color: #fff;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        transform 0.2s ease;
}

.auth-form input:focus {
    border-color: #5566BA;
    box-shadow: 0 0 6px rgba(85, 102, 186, 0.35);
    transform: scale(1.01);
}

/* ===========================
   LOGIN BUTTON
=========================== */

.auth-button {
    width: 100%;
    margin-top: 15px;
    box-sizing: border-box;
    padding: 12px;
    background-color: #5566BA;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.auth-button:hover {
    background-color: #7784D3;
}

/* ===========================
   FIELD ERRORS
=========================== */

.errorlist {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.errorlist li {
    background: #ffe6e6;
    color: #CE4425;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.field-error {
    margin-top: 6px;
    font-size: 14px;
    color: #CE4425;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-error::before {
    content: "⚠";
    font-size: 14px;
}

/* ===========================
   DJANGO MESSAGES
=========================== */

.messages-container {
    margin-bottom: 20px;
}

.msg {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.45;
    text-align: left;
    border-left-width: 4px;
    border-left-style: solid;
}

/* Success */
.msg.success {
    background: #e8f7ea;
    color: #166534;
    border-left-color: #16a34a;
}

/* Error */
.msg.error {
    background: #fdecea;
    color: #b91c1c;
    border-left-color: #dc2626;
}

/* Warning */
.msg.warning {
    background: #fff7e5;
    color: #b45309;
    border-left-color: #f59e0b;
}

/* Info */
.msg.info {
    background: #e7f0fe;
    color: #1d4ed8;
    border-left-color: #3b82f6;
}

/* Welcome message → styled as soft info */
.msg-welcome {
    background: #eef2ff;
    color: #3730a3;
    border-left: 4px solid #6366f1;
}

 