* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.login-container {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 18px;
}

.login-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #111827;
}

.login-header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #374151;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    background-color: #f9fafb;
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4b5563;
}

.remember-me input {
    width: 14px;
    height: 14px;
}

.forgot-link {
    font-size: 12px;
}

.forgot-link a {
    color: #2563eb;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

button[type="submit"] {
    margin-top: 12px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    transition: transform 0.1s, box-shadow 0.1s, opacity 0.1s;
}

button[type="submit"]:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.9;
}

.register-text {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #4b5563;
}

.register-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.register-text a:hover {
    text-decoration: underline;
}

/* Flask flash mesajları için */

.flash-messages {
    margin-bottom: 10px;
}

.flash-message {
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.flash-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.flash-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
