﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple-deep: #2d0a6e;
    --purple-mid: #4a1fa8;
    --purple-bright: #7c3aed;
    --purple-light: #a855f7;
    --purple-glow: #c084fc;
    --accent: #f0abfc;
    --white: #ffffff;
    --text-dim: rgba(255,255,255,0.5);
}

html, body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: #0d0118;
    overflow: hidden;
}

.bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, #2d0a6e 0%, #0d0118 70%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(124,58,237,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(124,58,237,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 30%, transparent 80%);
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #7c3aed;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #a855f7;
    bottom: -50px;
    right: 200px;
    animation-delay: 3s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #f0abfc;
    top: 40%;
    right: 10%;
    animation-delay: 5s;
    opacity: .2;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    height: 100vh;
    position: relative;
    z-index: 1;
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 60px 0 60px;
    animation: slideInLeft 0.9s cubic-bezier(.16,1,.3,1) both;
    overflow: hidden;
    position: relative;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.4);
    border-radius: 100px;
    padding: 6px 16px;
    width: fit-content;
    margin-bottom: 32px;
}

.brand-badge-dot {
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.brand-badge span {
    font-size: 12px;
    font-weight: 500;
    color: #c084fc;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    color: white;
    letter-spacing: -2px;
    margin-bottom: 8px;
}

    .brand-logo em {
        font-style: normal;
        background: linear-gradient(135deg, #a855f7, #f0abfc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.brand-sub {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.brand-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 20px;
}

    .brand-desc strong {
        color: white;
        font-weight: 500;
    }

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    animation: fadeUp 0.6s both;
}

    .feature-item:nth-child(1) {
        animation-delay: 0.4s;
    }

    .feature-item:nth-child(2) {
        animation-delay: 0.55s;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-icon {
    width: 34px;
    height: 34px;
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.globe-wrap {
    position: absolute;
    top: 50px;
    left: 500px;
    right: 100px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    padding: 0 20px 20px;
}

    .globe-wrap img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center center;
        filter: drop-shadow(0 0 40px rgba(0,150,255,0.4));
        animation: imgFloat 6s ease-in-out infinite;
    }

@keyframes imgFloat {
    0%, 100% {
        transform: translateY(50px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    border-left: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    position: relative;
    animation: slideInRight 0.9s cubic-bezier(.16,1,.3,1) 0.15s both;
}

.deco-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7c3aed, #a855f7, transparent);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-inner {
    width: 100%;
    max-width: 360px;
}

.form-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a855f7;
    margin-bottom: 12px;
}

.form-title {
    font-family: 'Syne', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 36px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 11px;
    color: #4ade80;
    margin-bottom: 32px;
}

.status-dot {
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.field {
    margin-bottom: 20px;
}

    .field label {
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: rgba(255,255,255,0.6);
        letter-spacing: 0.05em;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.3);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s;
}

.field input[type="email"],
.field input[type="password"] {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 14px 14px 44px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: white;
    outline: none;
    transition: all 0.2s;
}

.field input::placeholder {
    color: rgba(255,255,255,0.25);
}

.field input:focus {
    border-color: rgba(124,58,237,0.6);
    background: rgba(124,58,237,0.08);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.field-wrap:focus-within .field-icon {
    color: #a855f7;
}

.field .text-danger {
    font-size: 12px;
    color: #f87171;
    margin-top: 6px;
    display: block;
}

.validation-summary {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #fca5a5;
    font-size: 13px;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 16px;
    }

.alert-custom {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #fca5a5;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    user-select: none;
}

    .remember input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #7c3aed;
        cursor: pointer;
    }

.forgot {
    font-size: 13px;
    color: #a855f7;
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot:hover {
        color: #f0abfc;
    }

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 12px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: white;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}

    .btn-login::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #9333ea, #c084fc);
        opacity: 0;
        transition: opacity 0.25s;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(124,58,237,0.55);
    }

        .btn-login:hover::before {
            opacity: 1;
        }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login span {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.version-tag {
    margin-top: 36px;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.1em;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        border-left: none;
        min-height: 100vh;
    }

    body {
        overflow: auto;
    }
}
