/* =============================================
   CYBERVIS Modern Login - Split Screen Design
   ============================================= */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Split Screen Layout */
.modern-login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Side - Branding Panel */
.login-brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.login-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
}

.brand-logo {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

.brand-logo img {
    display: none;
}

/* Modern Custom Logo */
.cyber-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.cyber-logo-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cyber-logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cyber-logo-icon::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
}

.cyber-logo-icon svg,
.cyber-logo-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.cyber-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cyber-logo-main {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.cyber-logo-tagline {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #94a3b8;
}

.brand-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

.brand-title .highlight {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
    line-height: 1.6;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    animation: fadeInUp 1.2s ease;
}

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

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-text {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 500;
}

/* Right Side - Login Form Panel */
.login-form-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 460px;
    animation: fadeIn 0.6s ease;
}

.form-header {
    margin-bottom: 40px;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 20px;
    margin-bottom: 24px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 15px;
    color: #64748b;
}

/* Modern Form Styles */
.modern-form-group {
    margin-bottom: 24px;
}

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

.modern-input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.modern-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.modern-input::placeholder {
    color: #94a3b8;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 16px;
}

.password-toggle-modern {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle-modern:hover {
    color: #6366f1;
}

/* Modern Button */
.modern-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    margin-top: 8px;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

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

.modern-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Footer */
.modern-form-footer {
    margin-top: 24px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modern-link:hover {
    color: #8b5cf6;
}

.divider-text {
    color: #94a3b8;
    font-size: 14px;
}

/* Bottom Footer */
.login-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.login-footer p {
    margin: 0;
}

.login-footer a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.login-footer a i {
    font-size: 16px;
}

.login-footer a:hover {
    text-decoration: none;
    background: rgba(99, 102, 241, 0.1);
    color: #5558e3;
    transform: translateX(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .login-brand-panel {
        padding: 40px;
    }

    .brand-title {
        font-size: 40px;
    }

    .brand-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body { overflow: auto; }

    .modern-login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-brand-panel {
        flex: 0 0 auto;
        min-height: auto;
        padding: 40px 24px 30px;
    }

    .cyber-logo { margin-bottom: 20px; }
    .cyber-logo-img { height: 80px; }
    .cyber-logo-icon { width: 50px; height: 50px; border-radius: 14px; }
    .cyber-logo-icon svg, .cyber-logo-icon img { width: 28px; height: 28px; }
    .cyber-logo-main { font-size: 30px; }
    .cyber-logo-tagline { font-size: 10px; letter-spacing: 2px; }

    .brand-title {
        font-size: 28px;
    }

    .brand-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .brand-features {
        display: none;
    }

    .login-form-panel {
        flex: 1;
        padding: 30px 24px;
        justify-content: flex-start;
    }

    .form-container {
        max-width: 100%;
    }

    .form-header { margin-bottom: 24px; }
    .form-title { font-size: 24px; }
    .form-subtitle { font-size: 14px; }
    .modern-form-group { margin-bottom: 18px; }
    .modern-input { height: 48px; font-size: 16px; }
    .modern-btn { height: 48px; font-size: 15px; }
    .company-badge { margin-bottom: 16px; }

    .login-footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .login-brand-panel { padding: 30px 16px 20px; }
    .brand-title { font-size: 24px; }
    .brand-subtitle { font-size: 13px; margin-bottom: 12px; }
    .login-form-panel { padding: 24px 16px; }
    .form-title { font-size: 22px; }
    .modern-form-footer { flex-direction: column; gap: 8px; }
    .divider-text { display: none; }
}

/* Alert Messages */
.modern-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.modern-alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.modern-alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.modern-alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}
