:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    position: relative;
    overflow-x: hidden;
}

/* Abstract Background Elements */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary-gradient);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 50px) scale(1.1);
    }
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    margin-bottom: 16px;
}

.logo-container h2 {
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    font-size: 28px;
}

.logo-container p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Tabs */
.nav-pills {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.nav-pills .nav-link {
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px;
    transition: all 0.3s;
}

.nav-pills .nav-link.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Form */
.form-floating>.form-control {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    height: calc(3.5rem + 2px);
    background: white;
}

.form-floating>label {
    padding: 1rem 1.25rem;
    color: var(--text-muted);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

.btn-login {
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-weight: 700;
    color: white;
    width: 100%;
    margin-top: 16px;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-link {
    text-align: right;
    margin-top: 12px;
}

.forgot-link a {
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Language Selectors */
.lang-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.lang-item {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.lang-item:hover {
    border-color: #6366f1;
    transform: scale(1.1);
}

.lang-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Downloads */
.app-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.app-links img {
    height: 38px;
    transition: opacity 0.2s;
}

.app-links a:hover img {
    opacity: 0.8;
}

/* Footer */
.footer-links {
    text-align: center;
    margin-top: 40px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.copyright {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 16px;
}

/* Custom Checkbox */
.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 32px;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}