/* ═══════════════════════════════════════════════════
   MONINVITES – ULTRA PRO LOGIN v3.0
   Premium Glassmorphism + Animated Patterns
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --gold: #D4AF37;
    --gold-light: #F0D878;
    --gold-dark: #A88B2A;
    --dark: #141420;
    --dark-card: #1c1c2e;
    --dark-input: #232338;
    --text: #f1ede6;
    --text-muted: #b0aab8;
    --accent: #D4AF37;
    --glass-bg: rgba(28, 28, 46, 0.82);
    --glass-border: rgba(212, 175, 55, 0.15);
    --radius: 20px;
    --radius-sm: 14px;
    --shadow-xl: 0 32px 64px -12px rgba(0, 0, 0, 0.5);
}

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

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ── MAIN LAYOUT ── */
.login-page {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ── VISUAL SIDE ── */
.visual-side {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
}

.visual-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 15, 0.75) 0%,
        rgba(10, 10, 15, 0.45) 40%,
        rgba(212, 175, 55, 0.08) 100%
    );
    z-index: 1;
}

.visual-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    z-index: 2;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Animated geometric pattern overlay */
.pattern-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.04;
    background-image:
        linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
        linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
        linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
        linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
        linear-gradient(60deg, rgba(212,175,55,0.5) 25%, transparent 25.5%, transparent 75%, rgba(212,175,55,0.5) 75%, rgba(212,175,55,0.5)),
        linear-gradient(60deg, rgba(212,175,55,0.5) 25%, transparent 25.5%, transparent 75%, rgba(212,175,55,0.5) 75%, rgba(212,175,55,0.5));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    animation: patternDrift 30s linear infinite;
}

@keyframes patternDrift {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-140px) translateX(-80px); }
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 2;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb-1 {
    width: 300px; height: 300px;
    background: rgba(212, 175, 55, 0.15);
    top: -80px; left: -80px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px; height: 200px;
    background: rgba(212, 175, 55, 0.1);
    bottom: 10%; right: -40px;
    animation-delay: -4s;
    animation-duration: 16s;
}

.orb-3 {
    width: 150px; height: 150px;
    background: rgba(255, 255, 255, 0.04);
    top: 50%; left: 30%;
    animation-delay: -8s;
    animation-duration: 20s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(15px, -15px) scale(1.05); }
}

/* Particles container */
#particles-js {
    position: absolute;
    inset: 0;
    z-index: 4;
}

/* Visual content */
.visual-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 clamp(24px, 5vw, 60px);
    max-width: 560px;
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(12px);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 28px;
    animation: fadeInDown 0.8s 0.2s both;
}

.visual-badge svg {
    width: 14px; height: 14px;
    fill: var(--gold);
}

.visual-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite, fadeInDown 0.8s 0.4s both;
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.visual-content p {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    max-width: 420px;
    margin: 0 auto 36px;
    animation: fadeInDown 0.8s 0.6s both;
}

/* Stats row */
.visual-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

/* ── FORM SIDE ── */
.form-side {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background: linear-gradient(160deg, #1a1a2e 0%, #16162a 40%, #1e1e36 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern on form side */
.form-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

/* Corner accents */
.form-side::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    width: 80px;
    height: 80px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    border-right: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 0 var(--radius-sm) 0 0;
}

/* Form-side floating sparkles */
.form-sparkle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    animation: sparkleFloat 6s ease-in-out infinite;
}
.form-sparkle:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.form-sparkle:nth-child(2) { top: 70%; right: 15%; animation-delay: 1.5s; width: 3px; height: 3px; }
.form-sparkle:nth-child(3) { top: 40%; right: 30%; animation-delay: 3s; width: 5px; height: 5px; }
.form-sparkle:nth-child(4) { bottom: 20%; left: 35%; animation-delay: 4.5s; width: 3px; height: 3px; }

@keyframes sparkleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.8; transform: translateY(-10px) scale(1); }
    50% { opacity: 0.4; transform: translateY(-25px) scale(0.8); }
    80% { opacity: 0.7; transform: translateY(-15px) scale(1.1); }
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    animation: cardReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 36px;
}

.logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: 160px;
    height: 160px;
}

/* Animated glow ring behind logo */
.logo-wrap::before {
    display: none; /* Deactivated by user request */
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 175px; height: 175px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(212, 175, 55, 0.5) 25%,
        transparent 50%,
        rgba(240, 216, 120, 0.4) 75%,
        transparent 100%
    );
    animation: logoRingSpin 4s linear infinite;
    filter: blur(3px);
}

/* Inner mask to create ring effect */
.logo-wrap::after {
    display: none; /* Deactivated to match user request */
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 155px; height: 155px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(160deg, #1a1a2e, #1e1e36);
}

@keyframes logoRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.logo-container img {
    position: relative;
    z-index: 2;
    width: auto;
    height: 130px;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.15));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.15)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.25)); }
}

.logo-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    animation: fadeInDown 0.6s 0.3s both;
}

.logo-container p {
    font-size: 0.88rem;
    color: #c0b8cc;
    font-weight: 400;
    animation: fadeInDown 0.6s 0.5s both;
}

/* Form labels */
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d4cde0;
    margin-bottom: 10px;
}

/* Inputs */
.form-control {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.form-control:focus {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

/* Remember / Forgot */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 28px;
    font-size: 0.82rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c0b8cc;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    background: var(--dark-input);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.remember-me input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: var(--dark);
    font-weight: 900;
}

.remember-forgot a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.remember-forgot a:hover {
    color: var(--gold-light);
}

/* Submit button */
.btn-primary {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px -4px rgba(212, 175, 55, 0.3);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -6px rgba(212, 175, 55, 0.4);
}

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

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

/* Footer */
.form-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* Social buttons */
.social-login {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--dark-input);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn:hover {
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--text);
    background: rgba(212, 175, 55, 0.04);
}

/* ── ANIMATIONS ── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .visual-side { flex: 1; }
    .form-side { flex: 1; }
    .visual-stats { gap: 24px; }
    .stat-number { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        overflow-y: auto;
    }

    .visual-side {
        min-height: 44vh;
        flex: none;
    }

    .form-side {
        flex: none;
        min-height: 56vh;
        padding: 32px 24px 48px;
        border-radius: var(--radius) var(--radius) 0 0;
        margin-top: -20px;
        position: relative;
        z-index: 10;
    }

    .form-side::after { display: none; }

    .visual-content h1 { font-size: 1.8rem; }
    .visual-content p { font-size: 0.82rem; margin-bottom: 24px; }
    .visual-stats { gap: 20px; }
    .stat-number { font-size: 1.3rem; }
    .stat-label { font-size: 0.6rem; }

    .logo-container { margin-bottom: 16px; }
    .logo-wrap { width: 120px; height: 120px; }
    .logo-wrap::before { width: 135px; height: 135px; }
    .logo-wrap::after { width: 118px; height: 118px; }
    .logo-container img { height: 100px; max-width: 110px; }
    .logo-container h2 { font-size: 1.4rem; }

    .form-control { padding: 14px 16px; }
    .btn-primary { padding: 15px; }
}

@media (max-width: 480px) {
    .visual-side { min-height: 38vh; }

    .form-side {
        padding: 28px 20px 40px;
        min-height: 62vh;
    }

    .visual-badge { font-size: 0.6rem; padding: 6px 14px; }
    .visual-content h1 { font-size: 1.5rem; }
    .visual-content p { display: none; }
    .visual-stats { gap: 16px; }
    .stat-number { font-size: 1.1rem; }

    .remember-forgot { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Alert styling override */
.alert-danger {
    background: rgba(220, 38, 38, 0.08) !important;
    border: 1px solid rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.82rem !important;
    padding: 12px 16px !important;
}