/* Shared styles for login.html and register.html */

body {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    animation: fadeIn 0.6s ease-out;
}

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

.login-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
}
.login-card h1 { color: #f8fafc; margin-bottom: 2rem; font-weight: 700; }

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; color: #94a3b8; margin-bottom: 0.6rem; font-size: 0.9rem; }
.form-group input {
    width: 100%; padding: 0.9rem; border-radius: 10px;
    background: #0f172a; color: white; box-sizing: border-box;
}

.btn-login, .btn-submit {
    width: 100%; padding: 1rem; border-radius: 10px; border: none;
    background: #3b82f6; color: white; font-weight: 600; cursor: pointer;
    margin-top: 1rem; transition: background 0.2s;
}
.btn-login:hover, .btn-submit:hover { background: #2563eb; }

.footer-link { margin-top: 1.5rem; color: #94a3b8; font-size: 0.9rem; }
.footer-link a { color: #3b82f6; text-decoration: none; font-weight: 600; }

.form-message {
    padding: 0.8rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
    display: none;
}
.form-message.show { display: block; }
.form-message.error { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #f87171; }
.form-message.success { background: rgba(34, 197, 94, 0.2); border: 1px solid #22c55e; color: #4ade80; }

.btn-login:disabled, .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
