/* =========================================
   YUVA EXIM — LOGIN PAGE STYLES
   Premium B2B Export Portal
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600&display=swap');

:root {
    --primary: #15803d;
    --primary-light: #22c55e;
    --primary-dark: #064e3b;
    --primary-glow: rgba(21,128,61,0.25);
    --gold: #d97706;
    --gold-light: #f59e0b;
    --gold-pale: rgba(217,119,6,0.12);
    --bg-body: #ffffff;
    --bg-dark: #011c15;
    --bg-navy: #052e1c;
    --text-dark: #052e1c;
    --text-body: #1e293b;
    --text-muted: #64748b;
    --text-white: #f8fafc;
    --border: rgba(21,128,61,0.12);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.14);
    --shadow-primary: 0 8px 28px rgba(21,128,61,0.35);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 14px;
    --radius-lg: 22px;
    --transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-body); color: var(--text-body); line-height: 1.7; overflow-x: hidden; min-height: 100vh; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: var(--font-body); cursor: pointer; border: none; }
.hidden { display: none !important; }

/* ========== PARTICLES CANVAS ========== */
#particles-canvas {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
}

/* ========== LOGIN LAYOUT ========== */
.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ========== LEFT SHOWCASE PANEL ========== */
.login-showcase {
    position: relative;
    background: linear-gradient(145deg, var(--bg-dark) 0%, var(--bg-navy) 40%, var(--primary-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem;
    overflow: hidden;
}
.showcase-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(21,128,61,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(217,119,6,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.showcase-content {
    position: relative; z-index: 2;
    max-width: 480px;
}
.showcase-logo img {
    height: 48px; width: auto;
    margin-bottom: 3rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: var(--transition);
}
.showcase-logo:hover img { transform: scale(1.05); }

.showcase-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #fff; line-height: 1.15;
    font-weight: 800; letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
}
.showcase-text h1 em {
    font-style: italic;
    color: var(--gold-light);
    display: block;
}
.showcase-text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Showcase Features */
.showcase-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.showcase-feature {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.showcase-feature:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.showcase-feature i {
    color: var(--gold-light);
    font-size: 1.1rem;
    width: 20px; text-align: center;
}
.showcase-feature span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

/* Trust Badges */
.showcase-trust {
    display: flex; gap: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-badge {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
}
.trust-badge i { color: var(--primary-light); font-size: 0.85rem; }

/* Decorative Circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
}
.deco-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation: float-slow 20s ease-in-out infinite; }
.deco-2 { width: 250px; height: 250px; bottom: -50px; left: -80px; animation: float-slow 15s ease-in-out infinite reverse; }
.deco-3 { width: 150px; height: 150px; top: 40%; right: 10%; border-color: rgba(217,119,6,0.1); animation: float-slow 12s ease-in-out infinite; }

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 15px) rotate(-3deg); }
}

/* ========== RIGHT LOGIN PANEL ========== */
.login-panel {
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    background: #fff;
    position: relative;
}
.login-panel::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--gold), var(--primary-light));
}

.login-form-wrapper {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.8s var(--ease) both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    margin-bottom: 2rem;
    justify-content: center;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-icon-wrap {
    position: relative;
    width: 72px; height: 72px;
    margin: 0 auto 1.2rem;
}
.login-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(21,128,61,0.08), rgba(22,163,74,0.15));
    border: 2px solid rgba(21,128,61,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    position: relative; z-index: 1;
}
.login-icon-ring {
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(21,128,61,0.1);
    animation: ring-pulse 3s ease-in-out infinite;
}
@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
}
.login-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.login-header p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ========== GOOGLE SIGN-IN ========== */
.google-signin-section {
    margin-bottom: 1.5rem;
}
.google-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    padding: 0.9rem 1.5rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.google-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(66,133,244,0.05), rgba(52,168,83,0.05), rgba(251,188,5,0.05), rgba(234,67,53,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.google-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.google-btn:hover::after { opacity: 1; }
.google-icon { flex-shrink: 0; position: relative; z-index: 1; }
.google-btn span { position: relative; z-index: 1; }

/* ========== DIVIDER ========== */
.login-divider {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
}
.login-divider::before, .login-divider::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.login-divider span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ========== FORM ========== */
.login-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}
.input-wrap {
    position: relative;
    display: flex; align-items: center;
}
.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    z-index: 2;
}
.input-wrap input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: #f8fafc;
    transition: var(--transition);
    outline: none;
}
.input-wrap input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.input-wrap input:focus ~ .input-focus-ring { opacity: 1; }
.input-wrap:has(input:focus) .input-icon { color: var(--primary); }

.input-focus-ring {
    position: absolute; inset: -3px;
    border-radius: 15px;
    border: 2px solid rgba(21,128,61,0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toggle-password {
    position: absolute; right: 1rem;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    padding: 4px;
    transition: color 0.3s ease;
}
.toggle-password:hover { color: var(--primary); }

.field-error {
    display: block;
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 0.3rem;
    min-height: 1rem;
}

/* Form Options */
.form-options {
    display: flex; justify-content: space-between; align-items: center;
}
.remember-me {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-body);
    cursor: pointer;
    position: relative;
}
.remember-me input { position: absolute; opacity: 0; cursor: pointer; }
.checkmark {
    width: 18px; height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.checkmark::after {
    content: '✓';
    font-size: 0.7rem;
    color: #fff;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}
.remember-me input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}
.remember-me input:checked ~ .checkmark::after {
    opacity: 1; transform: scale(1);
}
.forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}
.forgot-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* Submit Button */
.btn-login {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    margin-top: 0.5rem;
}
.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(21,128,61,0.45);
}
.btn-login::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 80px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-login:hover::after { left: 140%; }
.btn-loader { display: none; }
.btn-login.loading .btn-text { display: none; }
.btn-login.loading .btn-arrow { display: none; }
.btn-login.loading .btn-loader { display: inline-flex; }

/* ========== LOGIN MESSAGE ========== */
.login-message {
    margin-top: 1rem;
    padding: 0;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    max-height: 0;
}
.login-message.show {
    padding: 0.9rem 1.2rem;
    max-height: 100px;
}
.login-message.success {
    background: rgba(21,128,61,0.08);
    border: 1px solid rgba(21,128,61,0.2);
    color: var(--primary-dark);
}
.login-message.error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #dc2626;
}

/* ========== USER PROFILE CARD ========== */
.user-profile { margin-top: 1.5rem; animation: fadeInUp 0.6s var(--ease) both; }
.profile-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(21,128,61,0.04), rgba(217,119,6,0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.profile-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 12px rgba(21,128,61,0.2);
}
.profile-info { flex: 1; }
.profile-info h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.profile-info p { font-size: 0.82rem; color: var(--text-muted); }
.profile-badge {
    font-size: 0.72rem; font-weight: 700;
    color: var(--primary);
    background: rgba(21,128,61,0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    white-space: nowrap;
}

.profile-actions { display: flex; gap: 0.8rem; }
.btn-dashboard {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary), #16a34a);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}
.btn-dashboard:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(21,128,61,0.4); }
.btn-signout {
    padding: 0.8rem 1.2rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #dc2626;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-signout:hover { background: #dc2626; color: #fff; }

/* ========== LOGIN FOOTER ========== */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}
.login-footer p { font-size: 0.85rem; color: var(--text-muted); }
.signup-link { color: var(--primary); font-weight: 700; }
.signup-link:hover { text-decoration: underline; }
.footer-links {
    display: flex; justify-content: center; gap: 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.footer-links span { opacity: 0.3; }
.copyright { font-size: 0.72rem; margin-top: 0.6rem; opacity: 0.6; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-showcase { display: none; }
    .mobile-logo { display: flex; }
    .login-panel { min-height: 100vh; }
    .login-panel::before { width: 100%; height: 4px; left: 0; top: 0;
        background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary-light)); }
}
@media (max-width: 480px) {
    .login-panel { padding: 1.5rem; }
    .login-header h2 { font-size: 1.35rem; }
    .showcase-features { grid-template-columns: 1fr; }
    .form-options { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
    .profile-actions { flex-direction: column; }
}
