/* login.css - Stylish Login Page Styles */

/* Modern Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #a97307 0%, #e2eb5f 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    line-height: 1.6;
}

.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.8rem;
}

.message {
    background-color: #fdf2f2;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

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

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 0.95rem;
}

input[type="text"],
input[type="password"] {
    padding: 0.85rem;
    margin-bottom: 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

button {
    background: linear-gradient(to right, #4f46e5, #3b82f6);
    color: white;
    border: none;
    padding: 0.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

button:hover {
    background: linear-gradient(to right, #4338ca, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(66, 153, 225, 0.3);
}

button:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: #4a5568;
}

.register-link a {
    color: #4c51bf;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link a:hover {
    color: #312e81;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

.back-home-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-home-link:hover {
    color: #a855f7;
    text-decoration: underline;
}