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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 90%;
    z-index: 10;
    animation: slideUp 0.8s ease-out;
}

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

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

.logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 10px;
}


.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #1e3a8a;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.login-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

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

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.login-footer p {
    color: #666;
    font-size: 0.9rem;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    animation: cloudFloat 8s ease-in-out infinite;
    border-radius: 50px;
    opacity: 0.6;
}

/* Cloud-like shapes using box-shadow */
.floating-element:nth-child(1) {
    width: 100px;
    height: 40px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    border-radius: 40px;
    box-shadow:
        -25px 0 0 -5px rgba(255, 255, 255, 0.15),
        25px 0 0 -5px rgba(255, 255, 255, 0.15),
        -50px -10px 0 -10px rgba(255, 255, 255, 0.1),
        50px -10px 0 -10px rgba(255, 255, 255, 0.1);
}

.floating-element:nth-child(2) {
    width: 140px;
    height: 50px;
    top: 55%;
    right: 15%;
    animation-delay: 3s;
    border-radius: 50px;
    box-shadow:
        -35px 0 0 -8px rgba(255, 255, 255, 0.15),
        35px 0 0 -8px rgba(255, 255, 255, 0.15),
        -70px -15px 0 -15px rgba(255, 255, 255, 0.1),
        70px -15px 0 -15px rgba(255, 255, 255, 0.1),
        0 -25px 0 -10px rgba(255, 255, 255, 0.12);
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 35px;
    bottom: 25%;
    left: 15%;
    animation-delay: 6s;
    border-radius: 35px;
    box-shadow:
        -20px 0 0 -3px rgba(255, 255, 255, 0.15),
        20px 0 0 -3px rgba(255, 255, 255, 0.15),
        -40px -8px 0 -8px rgba(255, 255, 255, 0.1),
        40px -8px 0 -8px rgba(255, 255, 255, 0.1);
}

/* Add more cloud elements */
.floating-element:nth-child(4) {
    width: 60px;
    height: 25px;
    top: 80%;
    right: 35%;
    animation-delay: 1s;
    border-radius: 25px;
    box-shadow:
        -15px 0 0 -2px rgba(255, 255, 255, 0.15),
        15px 0 0 -2px rgba(255, 255, 255, 0.15);
}

.floating-element:nth-child(5) {
    width: 110px;
    height: 45px;
    top: 35%;
    right: 5%;
    animation-delay: 4s;
    border-radius: 45px;
    box-shadow:
        -30px 0 0 -5px rgba(255, 255, 255, 0.15),
        30px 0 0 -5px rgba(255, 255, 255, 0.15),
        0 -20px 0 -8px rgba(255, 255, 255, 0.12);
}

@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-15px) translateX(5px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-25px) translateX(-5px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-10px) translateX(3px);
        opacity: 0.6;
    }
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid #fcc;
    display: none;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid #cfc;
    display: none;
}

/* Auth Divider */
.auth-divider {
    margin: 20px 0 40px 0;
    text-align: center;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e8ed;
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Google Button */
.google-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.google-btn:hover {
    border-color: #4285F4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
    transform: translateY(-1px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Discord Button */
.discord-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.discord-btn:hover {
    border-color: #5865F2;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
    transform: translateY(-1px);
}

.discord-icon {
    width: 20px;
    height: 20px;
}

/* Auth Toggle */
.auth-toggle {
    text-align: center;
    margin: 20px 0;
}

.auth-toggle p {
    color: #666;
    font-size: 0.9rem;
}

.link-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: #1e3a8a;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 15px;
}

.modal-header h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signup-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.password-strength {
    margin-top: 5px;
    font-size: 0.8rem;
    height: 20px;
}

.password-weak { color: #e74c3c; }
.password-medium { color: #f39c12; }
.password-strong { color: #27ae60; }

.modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.modal-footer p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

footer {
    position: relative;
    z-index: 100;
    width: 100%;
    background: transparent;
}

footer p {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }


    .logo {
        max-width: 200px;
    }

    .modal-content {
        padding: 25px 20px;
        margin: 20px;
    }
}