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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5)), url('/static/images/login_booty.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Floating decorative elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
}

/* Logo section */
.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    margin-bottom: 24px;
    animation: float 6s ease-in-out infinite;
}

.logo-icon i {
    font-size: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

/* Login card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

/* Form elements */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-input-wrapper {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Messages */
.message {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: none;
}

.message.show {
    display: flex;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.message-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.message-text {
    font-size: 14px;
    font-weight: 500;
}

/* Button */
.login-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

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

.login-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Register link */
.register-section {
    text-align: center;
}

.register-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 12px;
}

.register-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-link:hover {
    text-decoration: underline;
}

/* Privacy note */
.privacy-note {
    margin-top: 32px;
    text-align: center;
}

.privacy-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        background-size: cover;
        background-position: center top;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }

    .login-container {
        max-width: 100%;
    }

    .login-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .logo-title {
        font-size: 28px;
    }

    .logo-subtitle {
        font-size: 13px;
    }

    .logo-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .logo-icon i {
        font-size: 32px;
    }

    .form-input {
        padding: 14px 14px 14px 44px;
        font-size: 15px;
    }

    .login-button {
        padding: 16px;
        font-size: 15px;
    }
}