﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    padding: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login-card {
    background: white;
    border-radius: 40px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    max-width: 400px;
    width: 100%;
    padding: 40px 30px 50px;
    position: relative;
    animation: fadeIn 0.8s ease forwards;
    text-align: center;
}

.login-header img {
    height: 60px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

    .login-header img:hover {
        transform: scale(1.05) rotate(3deg);
    }

.login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1565c0;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}

.login-header p {
    font-size: 16px;
    color: #444;
    margin: 0 0 25px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #2196f3;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 600;
    line-height: 1;
}

    .close-button:hover {
        color: #1976d2;
    }

.login-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    border-radius: 30px;
    border: 1.5px solid #2196f3;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', Arial, sans-serif;
}

    .input-field:focus {
        border-color: #1976d2 !important;
        box-shadow: 0 0 12px #1976d2 !important;
        outline: none;
    }

.login-button {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 16px 0;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .login-button:hover,
    .login-button:focus {
        background-color: #1976d2;
        box-shadow: 0 8px 25px rgba(25, 118, 210, 0.6);
        transform: translateY(-3px);
        outline: none;
    }

.error-message {
    color: #d32f2f;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 150, 243, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 22px;
}

.loading-content p {
    margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px 40px;
        border-radius: 30px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-button {
        font-size: 16px;
        padding: 14px 0;
    }
}
