/* ===================================
   DIGITAL GEORGE - SPLIT SCREEN LOGIN
   =================================== */

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

body {
    font-family: 'Orbitron', 'Inter', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0a0f;
}

/* === SPLIT LAYOUT === */
.split-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* === LEFT SIDE (FORM) === */
.left-side {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top left, #1a0f2e 0%, #0a0a0f 100%);
    overflow: hidden;
}

.bg-animated {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #ec4899, transparent);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

#particles {
    position: absolute;
    inset: 0;
}

/* === RIGHT SIDE (VIDEO) === */
.right-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.video-container {
    position: absolute;
    inset: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    pointer-events: none;
}

/* === FORM WRAPPER === */
.form-wrapper {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 480px;
    animation: appear 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
}

/* === CARD === */
.card {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    box-shadow: 
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(139, 92, 246, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(236, 72, 153, 0.5));
    border-radius: 24px;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s;
    z-index: -1;
}

.card:hover .card-glow {
    opacity: 0.3;
}

/* === HEADER === */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-rings {
    position: absolute;
    inset: 0;
}

.ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: ringRotate 8s linear infinite;
}

.ring-1 {
    border-top-color: #8b5cf6;
    border-right-color: #8b5cf6;
    animation-duration: 8s;
}

.ring-2 {
    border-bottom-color: #ec4899;
    border-left-color: #ec4899;
    animation-duration: 12s;
    animation-direction: reverse;
}

.ring-3 {
    border-top-color: #06b6d4;
    border-bottom-color: #06b6d4;
    animation-duration: 16s;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(139, 92, 246, 0.8);
    text-transform: uppercase;
}

/* === ALERTS === */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert i {
    font-size: 14px;
}

/* === FORM === */
.field {
    margin-bottom: 24px;
}

.field-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.field-inner > i:first-child {
    position: absolute;
    left: 20px;
    color: rgba(139, 92, 246, 0.6);
    font-size: 18px;
    z-index: 1;
}

.field-inner input {
    width: 100%;
    height: 56px;
    padding: 0 60px 0 56px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s;
}

.field-inner input::placeholder {
    color: rgba(139, 92, 246, 0.4);
    font-size: 12px;
    text-transform: uppercase;
}

.field-inner input:-webkit-autofill,
.field-inner input:-webkit-autofill:hover,
.field-inner input:-webkit-autofill:focus,
.field-inner input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(139, 92, 246, 0.05) inset !important;
    box-shadow: 0 0 0 1000px rgba(139, 92, 246, 0.05) inset !important;
    background-color: rgba(139, 92, 246, 0.05) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #fff !important;
}

.field-inner input:focus {
    outline: none;
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.05),
        0 0 30px rgba(139, 92, 246, 0.2);
}

.field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transition: width 0.4s;
    border-radius: 0 0 16px 16px;
    pointer-events: none;
}

.field-inner input:focus ~ .field-line {
    width: 100%;
}

.toggle {
    position: absolute !important;
    right: 20px !important;
    left: auto !important;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 2;
}

.toggle:hover {
    background: rgba(139, 92, 246, 0.1);
    color: rgba(139, 92, 246, 1);
}

.trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* === CHECKBOX === */
.check {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    cursor: pointer;
    user-select: none;
}

.check input {
    display: none;
}

.check-box {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

.check-box i {
    opacity: 0;
    color: #fff;
    font-size: 12px;
    transition: opacity 0.2s;
}

.check input:checked ~ .check-box {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.check input:checked ~ .check-box i {
    opacity: 1;
}

.check-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

/* === BUTTON === */
.btn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    transition: all 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 40px rgba(139, 92, 246, 0.5),
        0 0 60px rgba(139, 92, 246, 0.3);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s;
}

.btn i {
    position: relative;
    z-index: 1;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    position: relative;
    z-index: 1;
}

.btn.loading .btn-loader {
    opacity: 1;
    animation: spin 0.6s linear infinite;
}

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

.btn.loading .btn-text,
.btn.loading i.fa-arrow-right {
    display: none;
}

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

/* === FOOTER === */
.footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center;
}

.footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(139, 92, 246, 0.7);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
}

.footer a:hover {
    color: #8b5cf6;
    transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
    }
    
    .left-side,
    .right-side {
        flex: none;
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .right-side {
        height: 40vh;
    }
    
    .left-side {
        height: 60vh;
    }
    
    .card {
        padding: 40px 32px;
    }
    
    .title {
        font-size: 22px;
        letter-spacing: 3px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .btn, .field-inner input {
        height: 52px;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        width: 95%;
    }
    
    .card {
        padding: 32px 24px;
    }
    
    .title {
        font-size: 20px;
    }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}