:root {
    --bg-dark: #0F0F0F;
    --text-white: #F5F5F5;
    --accent-yellow: #FFD700;
    --border-radius: 16px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --grid-line: rgba(255, 255, 255, 0.02);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
}

.vault-door {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, rgba(15, 15, 15, 0) 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    z-index: 10;
}

.card {
    background: rgba(25, 25, 25, 0.9);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow), 0 0 30px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffcc00, #ffd700, #ffcc00);
    z-index: -1;
    border-radius: var(--border-radius);
    opacity: 0.3;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-icon {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.tagline {
    color: rgba(245, 245, 245, 0.7);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

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

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-yellow);
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-white);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.validation-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-yellow);
    opacity: 0;
    transition: var(--transition);
}

.valid .validation-icon {
    opacity: 1;
}

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

.password-toggle:hover {
    color: var(--accent-yellow);
}

.strength-meter {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-progress {
    height: 100%;
    width: 0%;
    background: var(--accent-yellow);
    border-radius: 2px;
    transition: var(--transition);
}

.helper-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-custom.checked {
    background: var(--accent-yellow);
}

.checkbox-custom.checked i {
    color: var(--bg-dark);
    font-size: 12px;
}

.checkbox-label {
    font-size: 14px;
    color: rgba(245, 245, 245, 0.8);
}

.forgot-password {
    color: var(--accent-yellow);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-yellow);
    transition: var(--transition);
}

.forgot-password:hover::after {
    width: 100%;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-bottom: 15px;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-ghost {
    background: transparent;
    border: 2px solid rgba(245, 245, 245, 0.3);
    color: var(--text-white);
}

.btn-ghost:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(245, 245, 245, 0.5);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

.oauth-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.oauth-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--border-radius);
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.oauth-btn:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.security-features {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(245, 245, 245, 0.6);
    margin-top: 20px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.security-item i {
    color: var(--accent-yellow);
    font-size: 14px;
}

.alert {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 12px 20px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: pulse 0.5s;
}

.alert i {
    color: var(--accent-yellow);
}

.alert-text {
    flex: 1;
    font-size: 14px;
}

.loading-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    pointer-events: none;
}

.ai-mascot {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    opacity: 0.8;
    animation: float 4s ease-in-out infinite;
}

.guest-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    padding: 15px;
    text-align: center;
    font-weight: 500;
    display: none;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-yellow);
    border-radius: 2px;
    animation: confetti 1s ease-out forwards;
}

@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .ai-mascot {
        display: none;
    }
    
    body {
        justify-content: flex-end;
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 60%;
    }
}