/* ===================================================
   ORDER INVEST - LOGIN PAGE
   =================================================== */

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

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

/* ===== LEFT PANEL ===== */
.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-logo {
    margin-bottom: 48px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.login-logo h1 span {
    color: #22c55e;
}

.login-logo p {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.login-title {
    margin-bottom: 32px;
}

.login-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.login-title p {
    color: #6b7280;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    font-size: 16px;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #141414;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #22c55e;
    background: #0f1a0f;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.input-wrapper input:focus ~ i {
    color: #22c55e;
}

.input-wrapper input::placeholder {
    color: #4b5563;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] { display: none; }

.remember-me .checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #333;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: #141414;
}

.remember-me input:checked + .checkmark {
    background: #22c55e;
    border-color: #22c55e;
}

.remember-me input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #fff;
}

.remember-me span {
    color: #9ca3af;
    font-size: 13px;
}

.forgot-password {
    color: #22c55e;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover { color: #16a34a; }

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

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

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

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

.login-footer {
    text-align: center;
    margin-top: 32px;
    color: #6b7280;
    font-size: 13px;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
}

.language-switch:hover { color: #22c55e; }

.support-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #1f1f1f;
}

.support-info p {
    color: #4b5563;
    font-size: 12px;
}

/* ===== RIGHT PANEL ===== */
.login-right {
    flex: 1;
    background: linear-gradient(135deg, #0f1a0f 0%, #0a0a0a 50%, #0a1a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.right-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 40px;
}

.right-content .mockup-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    justify-content: center;
}

.stat-card-preview {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 160px;
    backdrop-filter: blur(10px);
}

.stat-card-preview .label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-card-preview .value {
    font-size: 22px;
    font-weight: 700;
    color: #22c55e;
}

.stat-card-preview.equity .value { color: #3b82f6; }

.stat-card-preview .bar {
    margin-top: 12px;
    height: 4px;
    background: #1f1f1f;
    border-radius: 2px;
    overflow: hidden;
}

.stat-card-preview .bar-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
    width: 70%;
}

.stat-card-preview.equity .bar-fill {
    background: #3b82f6;
    width: 55%;
}

.right-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.right-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
}

.floating-dot:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.floating-dot:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.floating-dot:nth-child(3) { top: 80%; left: 30%; animation-delay: 4s; }
.floating-dot:nth-child(4) { top: 30%; left: 70%; animation-delay: 1s; }
.floating-dot:nth-child(5) { top: 50%; left: 50%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.6; }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .login-right { display: none; }
    body { justify-content: center; }
    .login-left { max-width: 100%; }
}

@media (max-width: 480px) {
    .login-left { padding: 20px; }
    .login-logo { margin-bottom: 32px; }
    .login-logo h1 { font-size: 24px; }
    .login-title { margin-bottom: 24px; }
    .login-title h2 { font-size: 20px; }
    .login-title p { font-size: 13px; }
    .input-wrapper input { padding: 14px 16px 14px 44px; font-size: 15px; }
    .login-btn { padding: 15px; font-size: 15px; }
    .form-options { flex-direction: column; gap: 12px; align-items: flex-start; }
    .login-footer { margin-top: 24px; }
}
