/**
 * BVMK CLIENT PORTAL — LOGIN STYLESHEET
 * Scoped styling for the client login authentication portal.
 * File: /client/assets/css/login.css
 */

:root {
    --brand-navy: #1a2a3a;
    --brand-blue: #2575a2;
    --brand-gold: #cfa95d;
    --brand-gold-light: #f1d27a;
    --bg-slate: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', var(--font-sans, sans-serif);
    background-color: var(--bg-slate);
    color: #1e293b;
    overflow-x: hidden;
}

.font-marcellus {
    font-family: 'Marcellus', serif;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Hero Background Patterns */
.login-hero-bg {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
    overflow: hidden;
}

.bg-mesh-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(37, 117, 162, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(207, 169, 93, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

/* Floating background shapes animation */
.animated-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.45;
    animation: floatShape 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.blob-1 {
    width: 350px;
    height: 350px;
    background: rgba(37, 117, 162, 0.18);
    top: -80px;
    left: -80px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(207, 169, 93, 0.2);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Luxury Login Card */
.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 28px 56px -12px rgba(15, 23, 42, 0.12);
}

/* Input styling with focus animation */
.custom-input {
    background: #edf3fa;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
}

.custom-input:hover {
    background: #e8f0f9;
    border-color: #94bde6;
}

.custom-input:focus-within {
    background: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(37, 117, 162, 0.18);
}

/* Brand Action Button */
.btn-brand-primary {
    background: linear-gradient(135deg, #1a2a3a 0%, #2575a2 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px rgba(37, 117, 162, 0.25);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.btn-brand-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.5s;
}

.btn-brand-primary:hover::before {
    left: 100%;
}

.btn-brand-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2575a2 0%, #cfa95d 100%);
    box-shadow: 0 14px 28px rgba(207, 169, 93, 0.35);
}

.btn-brand-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(37, 117, 162, 0.25);
}

/* Hover slide arrow */
.hover-arrow i {
    transition: transform 0.3s ease;
}
.hover-arrow:hover i {
    transform: translateX(-4px);
}

/* Fluid Desktop Scaling for Auth Pages (1280px -> 4K / Ultrawide) */
@media (min-width: 1280px) {
    .login-hero-bg {
        min-height: clamp(560px, calc(100vh - 180px), 880px);
    }

    .login-hero-bg > .max-w-6xl {
        max-width: min(100%, clamp(1140px, 82vw, 1440px));
    }
}

@media (min-width: 1600px) {
    .login-card {
        max-width: 490px;
    }
}
