/* app/static/css/auth.css */

/* BACKGROUND */
body.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg,#1e3c72,#2a5298);
}

body.register-page {
    min-height: 100vh;
    background: linear-gradient(135deg,#42275a,#734b6d);
}

/* CENTERING */
.login-page .main,
.register-page .main {
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD SIZE */
.login-page .card,
.register-page .card {
    width: 380px;
}

/* BUTTON BLOCK */
.login-page .form-buttons,
.register-page .form-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

/* TITLE */
.auth-page .card h1 {
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* COLORS */
.login-page .btn-primary {
    background: #2a5298;
    color: white;
}

.login-page .btn-primary:hover {
    background: #1e3c72;
}

.register-page .btn-primary {
    background: #734b6d;
    color: white;
}

.register-page .btn-primary:hover {
    background: #42275a;
}

.form-error {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    background: #ffe6e6;
    color: #c0392b;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #f5c2c2;
}

.form-error {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* INPUT FIELDS */
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

/* FOCUS */
.form-group input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.15);
}

/* LABEL */
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* HINT */
.form-hint {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}