@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Grid background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Glowing blue lights */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(52, 152, 219, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 80% 10%, rgba(52, 152, 219, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 20% 90%, rgba(52, 152, 219, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 1;
}

.login-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 2px solid #3498db;
}

.login-header {
    background-color: #000000;
    color: #ffffff;
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #3498db;
}

.login-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.login-header .subtitle {
    font-size: 14px;
    color: #a0a0a0;
    font-weight: 400;
}

.login-body {
    padding: 40px 30px;
    background-color: #ffffff;
}

.login-body h2 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.auth-description {
    color: #666666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 5px;
}

.auth-form input[type="email"] {
    padding: 14px;
    border: 1px solid #333333;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #000000;
}

.auth-form input[type="email"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.auth-form input[type="email"]::placeholder {
    color: #999999;
}

.auth-message {
    min-height: 20px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}

.auth-message.error {
    color: #c0392b;
    background-color: #fadbd8;
    border: 1px solid #f1948a;
}

.auth-message.success {
    color: #3498db;
    background-color: #d6eaf8;
    border: 1px solid #85c1e9;
}

.action-btn {
    padding: 14px 20px;
    border: none;
    background-color: #3498db;
    color: #ffffff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
}

.action-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    background-color: #666666;
    cursor: not-allowed;
    transform: none;
}

.auth-success {
    text-align: center;
    padding: 20px;
    animation: slideIn 0.4s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: #3498db;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.auth-success p {
    margin-bottom: 12px;
    color: #000000;
    font-size: 15px;
}

.auth-success strong {
    color: #3498db;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.auth-note {
    color: #666666;
    font-size: 13px;
    font-style: italic;
    margin-top: 15px;
}

#sentEmailAddress {
    font-weight: 600;
    color: #000000;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 600px) {
    .login-card {
        border-radius: 8px;
    }

    .login-header {
        padding: 25px 20px;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .login-body {
        padding: 30px 20px;
    }

    .login-body h2 {
        font-size: 20px;
    }
}
