:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --highlight: #e94560;
    --text-light: #ffffff;
    --text-dark: #333333;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)),
        url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    padding: 20px;
}

header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo span { color: var(--highlight); }
.logo i { color: var(--highlight); font-size: 1.8rem; }

.lang-switcher { display: flex; gap: 0.5rem; }
.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn.active { background: var(--highlight); border-color: var(--highlight); }

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

.auth-header { text-align: center; margin-bottom: 2.5rem; }
.auth-header h1 { font-family: 'Outfit', sans-serif; font-size: 2.2rem; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.auth-header p { color: rgba(255, 255, 255, 0.6); font-size: 1rem; }

.auth-tabs { display: flex; background: rgba(0, 0, 0, 0.2); padding: 5px; border-radius: 14px; margin-bottom: 2rem; }
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}
.auth-tab.active { background: var(--highlight); color: white; box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3); }

.form-group { margin-bottom: 1.5rem; position: relative; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.6rem; color: rgba(255, 255, 255, 0.8); margin-left: 4px; }

.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.3); transition: color 0.3s; }

.form-group input, .form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--highlight);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.btn {
    width: 100%;
    background: var(--highlight);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

.btn:hover { background: #d13855; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(233, 69, 96, 0.4); }

#message { margin-bottom: 1.5rem; padding: 1rem; border-radius: 12px; display: none; font-size: 0.9rem; text-align: center; backdrop-filter: blur(5px); }
.success { background: rgba(40, 167, 69, 0.2); color: #2ecc71; border: 1px solid rgba(40, 167, 69, 0.3); }
.error { background: rgba(220, 53, 69, 0.2); color: #ff4757; border: 1px solid rgba(220, 53, 69, 0.3); }

.footer-text { margin-top: 2rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); text-align: center; }

.code-input { letter-spacing: 0.5rem; text-align: center; font-size: 1.5rem !important; font-weight: 700; padding-left: 1rem !important; }

.link-text { color: var(--highlight); text-decoration: none; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: inline-block; margin-top: 0.5rem; }
.link-text:hover { text-decoration: underline; }
