/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Open Sans', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-weight: 300;
}

/* General Link Styles for Better Visibility */
a {
    color: #1e40af !important;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    color: #1e3a8a !important;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

a:visited {
    color: #6b21a8 !important;
}

/* Language toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(71, 85, 105, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.lang-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.lang-btn.active,
.lang-btn:hover {
    background: #475569;
    color: white;
    transform: scale(1.05);
}

/* Video background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.03;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth forms wrapper */
.auth-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    width: 100%;
}

/* Form containers */
.form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    min-height: 350px;
}

.form-container:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Headings */
.form-container h2 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* Input fields */
input {
    padding: 15px 20px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-weight: 300;
}

input:focus {
    outline: none;
    border-color: #475569;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
    transform: translateY(-1px);
}

input::placeholder {
    color: #9ca3af;
}

/* Password container */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #7f8c8d;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* Buttons */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #475569;
    color: white;
    box-shadow: 0 2px 4px rgba(71, 85, 105, 0.2);
    border: none;
    font-weight: 400;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(71, 85, 105, 0.3);
    background: #334155;
}

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

.btn-secondary {
    background: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: white;
    font-weight: 400;
}

.btn-secondary:hover {
    background: #6b7280;
    border-color: rgba(107, 114, 128, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(156, 163, 175, 0.2);
}

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

/* Back link */
.back-link {
    color: #6b7280;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.back-link:hover {
    color: #475569;
    transform: translateX(-3px);
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-forms {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .form-container {
        padding: 30px 25px;
        min-height: 300px;
    }
    
    .form-container h2 {
        font-size: 20px;
    }
    
    input, .btn {
        padding: 12px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .form-container {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .form-container h2 {
        font-size: 18px;
    }
}
