* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #4a4a4a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.login-container {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

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

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    height: 120px;
}

.logo-image {
    max-width: 250px;
    max-height: 120px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-bg {
    background: #fff;           /* White background */
    padding: 16px;              /* Space around logo */
    border-radius: 12px;        /* Rounded rectangular badge */
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Optional: subtle shadow */
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #444;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #222;
    color: #fff;
}

.form-input::placeholder {
    color: #888;
}

.form-input:focus {
    outline: none;
    border-color: #555;
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.2);
}

.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: white;
    border: 1px solid #555;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #444 0%, #555 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: rgba(254, 202, 202, 0.1);
    border: 1px solid rgba(252, 165, 165, 0.3);
    color: #fc8181;
}

.alert-success {
    background-color: rgba(187, 247, 208, 0.1);
    border: 1px solid rgba(134, 239, 172, 0.3);
    color: #68d391;
}

.footer-text {
    margin-top: 30px;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .logo-image {
        max-width: 200px;
        max-height: 100px;
    }
}

/* Loading animation */
.login-button.loading {
    position: relative;
    color: transparent;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Add some subtle glow effects */
.login-container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.05);
}