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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #1D6AB9;
    --accent-hover: #2580d4;
    --error: #e22134;
    --border: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 106, 185, 0.1) 0%, rgba(29, 185, 84, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.auth-carousel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 24px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.carousel-item {
    aspect-ratio: 1;
    border-radius: 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
    overflow: hidden;
    animation: floatAnimation 20s infinite ease-in-out;
    box-shadow: 0 12px 40px rgba(29, 106, 185, 0.25);
    opacity: 0.3;
}

.carousel-item:nth-child(2) { background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%); }
.carousel-item:nth-child(3) { background: linear-gradient(135deg, #45B7D1 0%, #2D9CDB 100%); }
.carousel-item:nth-child(4) { background: linear-gradient(135deg, #FFA07A 0%, #FF8C42 100%); }
.carousel-item:nth-child(5) { background: linear-gradient(135deg, #98D8C8 0%, #6BCB77 100%); }
.carousel-item:nth-child(6) { background: linear-gradient(135deg, #F7DC6F 0%, #F39C12 100%); }
.carousel-item:nth-child(7) { background: linear-gradient(135deg, #BB6BD9 0%, #9B59B6 100%); }
.carousel-item:nth-child(8) { background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%); }
.carousel-item:nth-child(9) { background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%); }
.carousel-item:nth-child(10) { background: linear-gradient(135deg, #45B7D1 0%, #2D9CDB 100%); }
.carousel-item:nth-child(11) { background: linear-gradient(135deg, #FFA07A 0%, #FF8C42 100%); }
.carousel-item:nth-child(12) { background: linear-gradient(135deg, #98D8C8 0%, #6BCB77 100%); }
.carousel-item:nth-child(13) { background: linear-gradient(135deg, #F7DC6F 0%, #F39C12 100%); }
.carousel-item:nth-child(14) { background: linear-gradient(135deg, #BB6BD9 0%, #9B59B6 100%); }
.carousel-item:nth-child(15) { background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%); }
.carousel-item:nth-child(16) { background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%); }

.carousel-item:nth-child(1) { animation-delay: 0s; }
.carousel-item:nth-child(2) { animation-delay: 0.8s; }
.carousel-item:nth-child(3) { animation-delay: 1.6s; }
.carousel-item:nth-child(4) { animation-delay: 2.4s; }
.carousel-item:nth-child(5) { animation-delay: 3.2s; }
.carousel-item:nth-child(6) { animation-delay: 4s; }
.carousel-item:nth-child(7) { animation-delay: 1.2s; }
.carousel-item:nth-child(8) { animation-delay: 2s; }
.carousel-item:nth-child(9) { animation-delay: 2.8s; }
.carousel-item:nth-child(10) { animation-delay: 3.6s; }

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

@keyframes floatAnimation {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    25% {
        opacity: 0.35;
    }
    50% { 
        transform: translateY(-30px) scale(1.05);
        opacity: 0.4;
    }
    75% {
        opacity: 0.35;
    }
}

@keyframes containerAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.auth-container {
    width: 100%;
    max-width: 420px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 10;
    animation: containerAppear 0.6s ease-out;
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

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

.logo h1 {
    font-size: 46px;
    font-weight: 800;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1D6AB9 0%, #2580d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    padding: 14px 16px;
    background: rgba(31, 31, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    animation: inputSlideIn 0.5s ease-out backwards;
}

.form-group:nth-child(1) input { animation-delay: 0.1s; }
.form-group:nth-child(2) input { animation-delay: 0.2s; }
.form-group:nth-child(3) input { animation-delay: 0.3s; }

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(31, 31, 31, 1);
    box-shadow: 0 0 0 4px rgba(29, 106, 185, 0.15);
    transform: translateY(-2px);
}

.form-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.form-group input[type="checkbox"]:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(29, 106, 185, 0.2);
}

.form-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--accent) 0%, #2580d4 100%);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(29, 106, 185, 0.4);
}

.form-group input[type="checkbox"]:checked::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #2580d4 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    animation: buttonAppear 0.6s ease-out 0.5s backwards;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(29, 106, 185, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

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

.error-message {
    background: rgba(226, 33, 52, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.success-message {
    background: rgba(29, 106, 185, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--accent-hover);
}

@media (max-width: 480px) {
    .auth-container {
        padding: 32px 24px;
    }

    .logo h1 {
        font-size: 36px;
    }
}
