body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f9ff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(25, 118, 210, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 118, 210, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease-out;
    border-top: 4px solid #007bff;
}

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

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

.login-header h1 {
    color: #343a40;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-header p {
    color: #6c757d;
}

.logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    width: 80px;
    height: 80px;
    background-color: #007bff;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo i {
    font-size: 36px;
    color: white;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #343a40;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    padding-left: 40px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 42px;
    color: #6c757d;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-primary:active {
    transform: translateY(1px);
}

.error-message {
    color: #dc3545;
    margin-top: 20px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.error-message.show {
    display: block;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.btn.processing {
    background-color: #0069d9;
}

.btn.processing .spinner {
    display: block;
}

.footer-info {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}