/* SakGenLa Login Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.controls {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-header img {
    height: 40px;
    width: auto;
}

#lang-select {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 30, 0.8);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#lang-select:hover {
    background: rgba(30, 30, 45, 0.9);
    border-color: rgba(139, 92, 246, 0.5);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.brand-section {
    padding: 40px;
}

.logo {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.tagline {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: #a0a0b0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(20, 20, 30, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(30, 30, 45, 0.7);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
}

.feature-text {
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 600;
}

.card {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 480px;
    width: 100%;
}

.card-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
}

.card-subtitle {
    text-align: center;
    color: #a0a0b0;
    margin-bottom: 32px;
    font-size: 15px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: rgba(30, 30, 45, 0.5);
    padding: 4px;
    border-radius: 12px;
}

.tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #a0a0b0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 45, 0.6);
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(30, 30, 45, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

input::placeholder {
    color: #666;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #666;
    font-size: 14px;
}

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

.divider span {
    padding: 0 16px;
}

.social-buttons {
    display: grid;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 30, 45, 0.6);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(40, 40, 55, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.terms-text {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #808090;
    line-height: 1.6;
}

.terms-text a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
}

.terms-text a:hover {
    text-decoration: underline;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-fill {
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    animation: loading-slide 1.5s ease-in-out infinite;
}

@keyframes loading-slide {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
}

.loading-text {
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .brand-section {
        text-align: center;
    }

    .features {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .card {
        padding: 32px 24px;
    }

    .logo {
        font-size: 42px;
    }

    .tagline {
        font-size: 24px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

