/* views/customer/login.php — login page styles */
*, *::before, *::after { box-sizing: border-box; }
html, body {
    font-family: var(--font-manrope);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-root);
    color: var(--text-primary);
}

.login-grid {
    display: grid;
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .login-grid { grid-template-columns: 1fr 1fr; }
}

/* Left panel — form side */
.login-left {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    background: var(--bg-root);
}
.login-left-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-form-wrap {
    width: 100%;
    max-width: 400px;
}

/* Right panel — decorative (always dark) */
.login-right {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0c1024 0%, #111631 50%, #0c1024 100%);
    color: #f1f5f9;
}
@media (min-width: 1024px) {
    .login-right { display: flex; align-items: center; justify-content: center; }
}

/* Animated mesh */
.mesh-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.12), transparent);
    height: 1px;
    width: 100%;
    animation: meshSlide 8s linear infinite;
}
.mesh-line:nth-child(2) { animation-delay: -2s; animation-duration: 11s; background: linear-gradient(90deg, transparent, rgba(6,182,212,0.1), transparent); }
.mesh-line:nth-child(3) { animation-delay: -4.5s; animation-duration: 14s; }
.mesh-line:nth-child(4) { animation-delay: -6s; animation-duration: 9s; background: linear-gradient(90deg, transparent, rgba(6,182,212,0.08), transparent); }
@keyframes meshSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.mesh-v {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(99,102,241,0.08), transparent);
    width: 1px;
    height: 100%;
    animation: meshSlideV 10s linear infinite;
}
.mesh-v:nth-child(2) { animation-delay: -3s; animation-duration: 13s; background: linear-gradient(180deg, transparent, rgba(6,182,212,0.06), transparent); }
@keyframes meshSlideV {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Floating orbs on right */
.deco-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: orbDrift 12s ease-in-out infinite;
}
.deco-orb-1 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
    top: 10%; right: -60px;
}
.deco-orb-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    bottom: 15%; left: -40px;
    animation-delay: -4s;
}
.deco-orb-3 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    top: 55%; right: 30%;
    animation-delay: -7s;
    animation-duration: 15s;
}
@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(15px, -25px) scale(1.03); }
    66%  { transform: translate(-12px, 18px) scale(0.97); }
}

/* Right panel content */
.deco-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 420px;
}
.deco-icon-wrap {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.2));
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(99,102,241,0.2);
}
.deco-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    background: linear-gradient(135deg, #a5b4fc, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.deco-desc {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin: 0 0 2rem;
    line-height: 1.6;
}
.deco-features {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    text-align: left;
}
.deco-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}
.deco-feat-icon {
    width: 36px; height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    font-size: 1rem;
}

/* Form inputs */
.auth-input {
    background: var(--glass-input);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    width: 100%;
    font-family: var(--font-manrope);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    -webkit-appearance: none;
    display: block;
}
.auth-input.has-toggle { padding-right: 2.75rem; }
.auth-input::placeholder { color: var(--text-muted); }
.auth-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: var(--glass-card);
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.125rem;
    line-height: 1;
    pointer-events: none;
}
.btn-eye {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
}
.btn-eye:hover { color: var(--accent); }

.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-accent), var(--color-cyan));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.8125rem 1rem;
    width: 100%;
    font-family: var(--font-manrope);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
}
.btn-submit:active { transform: translateY(0); }

.link-accent { color: var(--accent); transition: color 0.2s; text-decoration: none; }
.link-accent:hover { color: var(--accent-cyan); }

.auth-divider { border: none; border-top: 1px solid var(--border-subtle); margin: 1.25rem 0; }

input[type="checkbox"] { accent-color: var(--accent); }

/* Back to home link */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 1rem;
}
.back-home:hover { color: #a5b4fc; }

/* Fade in */
.fade-up {
    animation: fadeUp 0.5s ease-out both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Extracted inline styles — customer/login.php
   ============================================================ */

/* Theme toggle button */
.v4-login-theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-default);
    background: var(--glass-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Back-home wrapper */
.v4-login-back-wrap {
    padding: 1rem 0.5rem 0;
}

/* Logo/header section */
.v4-login-header {
    margin-bottom: 2rem;
}
.v4-login-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
}
.v4-login-logo-img {
    height: 2.75rem;
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.3));
}
.v4-login-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.375rem;
}
.v4-login-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Form */
.v4-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input wrapper */
.v4-input-icon-wrap {
    position: relative;
}

/* Remember/forgot row */
.v4-login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.v4-login-remember-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.v4-login-checkbox {
    width: 0.875rem;
    height: 0.875rem;
}
.v4-login-remember-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.v4-login-forgot {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Submit button */
.v4-login-submit-btn {
    margin-top: 0.25rem;
}
.v4-login-submit-icon {
    font-size: 1.125rem;
}

/* Register row */
.v4-login-register-row {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}
.v4-login-register-link {
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Copyright */
.v4-login-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 2rem;
}

/* Mesh line positions */
.v4-mesh-top-20 { top: 20%; }
.v4-mesh-top-45 { top: 45%; }
.v4-mesh-top-70 { top: 70%; }
.v4-mesh-top-90 { top: 90%; }
.v4-mesh-left-25 { left: 25%; }
.v4-mesh-left-65 { left: 65%; }

/* Banner overlay */
.v4-login-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 22, 0.7);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Deco icon */
.v4-login-deco-icon {
    font-size: 2rem;
    color: #a5b4fc;
}
