:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2a44;
    --muted: #6b7280;
    --primary: #e41d25;
    --primary-dark: #c1171d;
    --border: #e3e7ef;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.woff2') format('woff2'),
        url('../fonts/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'),
        url('../fonts/Poppins-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #ffffff 0%, #f5f7fb 45%, #eef2f7 100%);
}

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: min(520px, 100%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(18, 38, 63, 0.08);
    padding: 28px 28px 22px;
}

.auth-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.auth-logos img {
    height: 64px;
    object-fit: contain;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(228, 29, 37, 0.12);
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px;
    font-size: 13px;
}

.auth-actions a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.auth-btn {
    width: 100%;
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.auth-btn:hover {
    background: var(--primary-dark);
}

.auth-footer {
    margin-top: 14px;
    font-size: 12px;
    text-align: center;
    color: var(--muted);
}

.auth-alert {
    background: #fff2f2;
    border: 1px solid #ffd9d9;
    color: #a0141a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-success {
    background: #ecfbf0;
    border: 1px solid #c7f0d3;
    color: #0b5b2a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 22px 18px;
    }
    .auth-title {
        font-size: 20px;
    }
}
