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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 10;
}

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

.login-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.login-header .logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

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

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    display: none;
}

.login-header p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 10px;
}

.login-form {
    padding: 40px 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.3s ease;
}

.form-input:focus + .input-icon {
    color: #3b82f6;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

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

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

.error-icon {
    font-size: 16px;
}

@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .login-header {
        padding: 30px 20px 15px;
    }
    
    .login-header .logo {
        max-width: 150px;
        margin-bottom: 10px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .form-input {
        padding: 14px 16px;
    }
    
    .login-button {
        padding: 14px;
    }
}

.login-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    animation: floatIcon 10s ease-in-out infinite;
    opacity: 0.3 !important;
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
}

.floating-icon:nth-child(odd) {
    animation-direction: reverse;
    animation-duration: 12s;
}

.floating-icon:nth-child(even) {
    animation-delay: -2s;
}

.floating-icon:nth-child(3n) {
    animation-duration: 8s;
    animation-delay: -4s;
}

.floating-icon.instagram {
    color: rgba(225, 48, 108, 0.4) !important;
    text-shadow: 0 0 15px rgba(225, 48, 108, 0.3);
}

.floating-icon.heart {
    color: rgba(255, 77, 77, 0.4) !important;
    text-shadow: 0 0 12px rgba(255, 77, 77, 0.3);
}

.floating-icon.camera {
    color: rgba(255, 255, 255, 0.35) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.floating-icon.message {
    color: rgba(59, 130, 246, 0.4) !important;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.floating-icon.story {
    color: rgba(255, 193, 7, 0.4) !important;
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
}

.floating-icon.video {
    color: rgba(156, 39, 176, 0.4) !important;
    text-shadow: 0 0 12px rgba(156, 39, 176, 0.3);
}

.floating-icon.comment {
    color: rgba(76, 175, 80, 0.4) !important;
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

.floating-icon.save {
    color: rgba(255, 152, 0, 0.4) !important;
    text-shadow: 0 0 12px rgba(255, 152, 0, 0.3);
}

.floating-icon.share {
    color: rgba(96, 125, 139, 0.4) !important;
    text-shadow: 0 0 12px rgba(96, 125, 139, 0.3);
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    20% {
        transform: translateY(-25px) translateX(15px) rotate(72deg) scale(1.1);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-10px) translateX(-20px) rotate(144deg) scale(0.9);
        opacity: 0.4;
    }
    60% {
        transform: translateY(-35px) translateX(8px) rotate(216deg) scale(1.2);
        opacity: 0.6;
    }
    80% {
        transform: translateY(-15px) translateX(-12px) rotate(288deg) scale(0.8);
        opacity: 0.35;
    }
}

@keyframes floatIcon2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-40px) translateX(-25px) rotate(120deg) scale(1.3);
        opacity: 0.5;
    }
    66% {
        transform: translateY(-20px) translateX(30px) rotate(240deg) scale(0.7);
        opacity: 0.4;
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

.form-input:focus-visible,
.login-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
