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

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

body, html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}

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

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 32px 32px 0 32px;
    position: relative;
}

.download-app-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

.download-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

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

.download-app-btn-bottom {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    margin-top: 15px;
    width: 100%;
}

.download-app-btn-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.download-app-btn-bottom:active {
    transform: translateY(0);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 0 32px;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 80px;
}

.security-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.badge-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: center;
}

.logo {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

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

.wizard {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 32px;
}

.wizard-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wizard-step.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.wizard-bar {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
}

.auth-form {
    padding: 0 32px 32px 32px;
}

.step-content h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

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

.password-group {
    position: relative;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 20px;
    font-size: 16px;
    height: 60px;
    padding: 0 24px;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2),
                0 8px 25px rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #FFD700;
}

.btn {
    border-radius: 20px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    height: 60px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-actions .btn {
    margin-bottom: 0;
    flex: 1;
}

.alert {
    margin: 0 32px 20px 32px;
    padding: 12px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.5s ease-out;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

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

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.forgot-link, .register-link a, .login-link a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-link:hover, .register-link a:hover, .login-link a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.register-link, .login-link {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    z-index: 100;
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.footer a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-wrapper {
        max-width: 100%;
        border-radius: 24px;
    }
    
    .auth-header {
        padding: 20px 20px 0 20px;
    }
    
    .auth-form {
        padding: 0 20px 20px 20px;
    }
    
    .download-app-btn {
        position: static;
        margin-bottom: 15px;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .form-control {
        height: 56px;
        font-size: 16px;
        padding: 0 20px;
    }
    
    .btn {
        height: 56px;
        font-size: 15px;
    }
    
    .wizard-step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .wizard-bar {
        width: 30px;
        margin: 0 8px;
    }
    
    .footer {
        font-size: 11px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .auth-header {
        padding: 15px 15px 0 15px;
    }
    
    .auth-form {
        padding: 0 15px 15px 15px;
    }
    
    .form-control {
        height: 52px;
        font-size: 15px;
        padding: 0 18px;
    }
    
    .btn {
        height: 52px;
        font-size: 14px;
    }
    
    .download-app-btn {
        font-size: 10px;
        padding: 5px 10px;
    }

    .security-badges {
        gap: 8px;
        padding: 0 15px;
    }

    .security-badge {
        min-width: 60px;
        padding: 8px 4px;
    }

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

    .badge-text {
        font-size: 8px;
    }
}
