/* ============================================
   Modern Login Page - Virtual Solutions
   Created: 2026-02-05
   ============================================ */

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

:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary-color: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body.login-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Animated Background */
.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%);
    animation: backgroundMove 20s ease infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Main Container */
.login_wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    animation: fadeIn 0.6s ease;
}

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

.login_area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 600px;
}

/* Text Block - Left Side */
.text_blcok {
    animation: slideInLeft 0.8s ease;
    padding: 40px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.text_blcok h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--bg-white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
}

.text_blcok p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Form Block - Right Side */
.form_block {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: slideInRight 0.8s ease;
    position: relative;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form_block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Logo */
.vs_logo {
    text-align: center;
    margin-bottom: 32px;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.vs_logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Welcome Text */
.form_block > h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 32px;
}

/* Login Methods Section */
.form_block > div h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Login Icons */
.fb_google_icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.fb_google_icons a,
.fb_google_icons button,
.google-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

.google-login-btn {
    position: relative;
    overflow: hidden;
}

.google-login-btn i {
    font-size: 1.25rem;
    color: #4285f4;
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #4285f4;
    background: linear-gradient(to right, #ffffff, #f8faff);
}

.google-login-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: left 0.5s ease;
}

.google-login-btn:hover::before {
    left: 100%;
}

.fb_google_icons a:hover,
.fb_google_icons button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.fb_google_icons a:active,
.fb_google_icons button:active {
    transform: translateY(0);
}

/* Divider */
.login_divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
}

.login_divider::before,
.login_divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.login_divider span {
    padding: 0 16px;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Fields */
.login_form_field {
    margin-bottom: 20px;
}

.login_form_field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login_form_field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.login_form_field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.login_form_field input::placeholder {
    color: var(--text-light);
}

/* Submit Button */
.login_submit_btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    margin-bottom: 24px;
}

.login_submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.login_submit_btn:active {
    transform: translateY(0);
}

/* Footer Text */
.login_form_txt {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 16px;
}

.login_form_txt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login_form_txt a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Loading State */
.form_block.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form_block.loading .loading-spinner {
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login_area {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .text_blcok {
        text-align: center;
        padding: 20px;
    }
    
    .text_blcok h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .text_blcok {
        display: none;
    }
    
    .form_block {
        padding: 32px 24px;
    }
    
    .form_block > h2 {
        font-size: 1.5rem;
    }
    
    .fb_google_icons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body.login-page {
        padding: 12px;
    }
    
    .form_block {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .vs_logo img {
        max-width: 160px;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
