* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 100vh;
}

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

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.auth-card h1 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 28px;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    color: #334155;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.password-group input {
    padding-right: 85px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    bottom: 9px;
    border: none;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-btn:hover {
    background: #1d4ed8;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.flash-message {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
}

.error-message,
.js-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
}

.js-error {
    display: none;
}

@media screen and (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }

    .auth-card h1 {
        font-size: 24px;
    }
}