@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #f8fafc;
}

.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Branding & Video */
.brand-section {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    color: white;
    background: #0f172a;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 64, 175, 0.3) 100%);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 160px;
    margin-bottom: 3rem;
}

.brand-text-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.brand-text-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.6;
}

.brand-footer {
    position: relative;
    z-index: 2;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Right Side - Login Form */
.form-section {
    width: 500px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    box-shadow: -20px 0 50px rgba(0,0,0,0.05);
    z-index: 3;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.form-header p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.form-control-corp {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control-corp:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control-corp::placeholder {
    color: #94a3b8;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: scale(0.98);
}

.support-contacts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.support-contacts h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin: 0 0 1.25rem 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-contacts h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.support-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.support-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: #f1f5f9;
    border: 1px solid transparent;
}

.support-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.support-item i {
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.support-item:hover i {
    color: #2563eb;
}

.attempts-warning {
    background-color: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .brand-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        z-index: 0;
    }
    
    .brand-content, .brand-footer {
        display: none;
    }
    
    .form-section {
        width: 100%;
        max-width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 2rem 1.5rem;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        box-sizing: border-box;
    }
    
    .form-container {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        padding: 2.5rem 2rem;
        border-radius: 28px;
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .form-control-corp {
        background-color: rgba(248, 250, 252, 0.7);
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1.5rem 1rem;
    }
    .form-container {
        padding: 2.25rem 1.25rem;
        border-radius: 24px;
    }
    .form-header h2 {
        font-size: 1.6rem;
    }
    .form-header p {
        font-size: 0.95rem;
    }
    .support-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .support-item {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        justify-content: center;
        gap: 4px;
    }
    .support-item i {
        font-size: 0.8rem;
    }
}
