﻿@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root { --primary: #1E293B; --accent: #2563EB; --white: #FFFFFF; --text-primary: #1E293B; --text-secondary: #64748B; --bg-input: #F1F5F9; --border-input: #E2E8F0; --glass: rgba(255, 255, 255, 0.95); --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

* { box-sizing: border-box; font-family: 'Outfit', sans-serif; margin: 0; padding: 0; }

body,
html { height: 100%; width: 100%; overflow: hidden; }

.login-wrapper { position: relative; height: 100vh; width: 100vw; display: flex; }

/* Background Slideshow */
.slideshow { position: absolute; inset: 0; z-index: 0; }

.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }

.slide.active { opacity: 1; }

/* Blur Overlay - Lightened for visibility */
.blur-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.05); /* Extremely subtle tint */ backdrop-filter: blur(2px); /* Very slight blur to keep bg visible */ -webkit-backdrop-filter: blur(2px); z-index: 1; }

.main-container { position: relative; z-index: 2; display: flex; width: 100%; height: 100%; }

/* Left Panel: Branding */
.branding-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 80px; /* More sophisticated gradient */ background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.8) 100%); color: white; position: relative; overflow: hidden; }

/* Subtle pattern overlay for branding panel */
.branding-panel::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 32px 32px; opacity: 0.1; pointer-events: none; }

.branding-content { max-width: 650px; position: relative; z-index: 2; }

.logo-container { margin-bottom: 60px; }

.main-logo { height: 90px; filter: brightness(0) invert(1); opacity: 1; transition: transform 0.3s ease; }

.main-logo:hover { transform: scale(1.02); }

.hero-title { font-size: 5rem; font-weight: 800; line-height: 1.05; margin-bottom: 48px; letter-spacing: -2px; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }

.hero-title .highlight { color: #60A5FA; position: relative; display: inline-block; }

/* Text Carousel - Polish */
.text-carousel { position: relative; padding-left: 28px; border-left: 4px solid rgba(96, 165, 250, 0.5); /* Blue accent border */ }

.carousel-item { display: none; animation: fadeIn 0.5s ease-out; }

.carousel-item.active { display: block; }

.carousel-item h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; color: white; letter-spacing: -0.5px; }

.carousel-item p { font-size: 1.15rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); /* Slightly clearer text */ max-width: 520px; font-weight: 300; }

.carousel-dots { display: flex; gap: 8px; margin-top: 24px; }

.dot { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }

.dot.active { background: white; width: 24px; border-radius: 4px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }

    to { opacity: 1; transform: translateY(0); }
}

/* Right Panel: Form - Crystal Glass Effect */
.form-panel { width: 600px; display: flex; align-items: center; justify-content: center; padding: 40px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-left: 1px solid rgba(255, 255, 255, 0.2); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05); /* Subtle shadow separation */ }

.login-card { width: 100%; max-width: 440px; background: rgba(255, 255, 255, 0.85); /* Slightly more opaque for readability */ padding: 40px; /* Reduced from 56px */ border-radius: 16px; /* Reduced from 32px */ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset; /* Inner glow border */ backdrop-filter: blur(20px); }

.card-header { text-align: center; margin-bottom: 24px; /* Reduced from 32px */ }

.icon-bg { width: 56px; /* Reduced from 64px */ height: 56px; /* Reduced from 64px */ background: #F8FAFC; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; /* Reduced from 20px */ border: 1px solid #E2E8F0; }

.card-header h2 { font-size: 1.5rem; /* Reduced from 1.75rem */ font-weight: 700; color: #1E293B; margin-bottom: 4px; /* Reduced from 8px */ }

.card-header p { color: #64748B; font-size: 0.9rem; /* Reduced from 0.95rem */ }

.clean-form { display: flex; flex-direction: column; gap: 0; /* Remove gap to rely solely on form-group margin */ }

.form-group { margin-bottom: 12px; /* Tight, consistent spacing */ }

.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #475569; margin-bottom: 6px; /* Reduced from 8px */ }

.input-wrapper { position: relative; display: flex; align-items: center; }

.input-icon { position: absolute; left: 12px; color: #94A3B8; display: flex; pointer-events: none; }

.input-wrapper input { width: 100%; height: 48px; /* Reduced from 52px */ padding-left: 40px; /* space for icon */ padding-right: 12px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; font-family: 'Outfit', sans-serif; font-size: 0.95rem; color: #1E293B; outline: none; transition: all 0.2s; }

.input-wrapper input:focus { background: white; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* Captcha Styling */
.captcha-box #loginFormCaptcha { transform-origin: left; }

.btn-primary { width: 100%; height: 48px; /* Reduced from 54px */ background: #1E293B; /* Dark navy */ color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); margin-top: 8px; /* Reduced from 16px/default */ }

.btn-primary:hover { background: black; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.form-links { text-align: center; margin-top: 8px; }

.forgot-link { color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; font-weight: 500; }

.forgot-link:hover { color: var(--accent); text-decoration: underline; }

.back-link-wrapper { display: flex; justify-content: center; margin-top: 16px; }

.btn-text { background: none; border: 1px solid var(--border-input); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }

.btn-text:hover { background: white; color: var(--text-primary); border-color: var(--text-primary); }

.card-footer { margin-top: 32px; text-align: center; font-size: 0.8rem; color: #CBD5E1; display: flex; justify-content: space-between; border-top: 1px solid #E2E8F0; padding-top: 16px; }

/* Captcha Styling - Premium Integration */
.captcha-box { margin-top: 8px; /* Reduced from 12px */ margin-bottom: 8px; /* Reduced from 12px */ }

/* Base anchor for the entire captcha block */
#loginFormCaptcha { position: relative !important; display: block !important; min-height: 90px; /* Reduced from 110px */ }

.captchaBody { background: transparent !important; padding: 0 !important; border: none !important; display: flex !important; flex-direction: column !important; gap: 8px; }

/* The area containing the captcha image */
.captchaBody > div:first-child { display: flex; align-items: center; justify-content: center; background: white; padding: 2px; border-radius: 8px; border: 1px solid var(--border-input); height: 60px; overflow: hidden; position: relative; /* Local anchor for image-specific stuff */ }

/* The captcha image itself */
.captchaBody img { border-radius: 6px; width: 100% !important; object-fit: fill; margin: 0 !important; }

/* Hide ANY auto-generated links/buttons in the captcha and input areas */
/*#loginFormCaptcha a,
#loginFormCaptcha button,
.captchaBody a,
.captchaBody button { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; position: absolute !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
*/
/* THE REFRESH BUTTON - Custom One (Keep this visible!) */
.custom-captcha-refresh { position: absolute !important; right: 8px !important; top: 8px !important; color: var(--text-secondary) !important; text-decoration: none !important; width: 32px !important; height: 32px !important; display: flex !important; align-items: center !important; justify-content: center !important; background: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(4px) !important; border: 1px solid rgba(0, 0, 0, 0.1) !important; border-radius: 8px !important; z-index: 1000 !important; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; transition: all 0.2s; }

.custom-captcha-refresh:hover { color: var(--accent) !important; transform: rotate(180deg); }

/* The input field container */
.captchaBody vpanel { display: flex !important; width: 100% !important;display:flex;flex-direction:row; }


/* The actual input field */
.captchaBody vpanel input { width: 100% !important; height: 52px !important; padding: 0 16px !important; background: var(--bg-input) !important; border: 1px solid var(--border-input) !important; border-radius: 12px !important; font-family: 'Outfit', sans-serif !important; font-size: 1rem !important; color: var(--text-primary) !important; outline: none !important; box-shadow: none !important; transition: all 0.2s;margin-top:10px; }

.captchaBody vpanel input:focus { background: white !important; border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important; }

/* If it's Google ReCaptcha (iframe), center it */
#loginFormCaptcha iframe { border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }

.captchaBody vpanel button{margin-top:10px !important;height:52px !important;width:60px;}

/* Mobile */
@media (max-width: 1024px) {
    .branding-panel { display: none; }

    .form-panel { width: 100%; backdrop-filter: blur(8px); }
}
