@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --left-bg: #032B1F;
    --highlight: #F5C518;
    --text-white: #FFFFFF;
    --right-bg: #FFFFFF;
    --primary-green: #07A776;
    --primary-dark: #044230;
    --text-gray: #6B7280;
    --input-bg: #F5F7F6;
    --input-border: #E5E7EB;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--right-bg);
    overflow-x: hidden;
    color: var(--text-gray);
}

.login-split-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* LEFT PANEL */
.panel-left {
    width: 55%;
    background: radial-gradient(circle at 70% 30%, #064A35 0%, var(--left-bg) 60%);
    color: var(--text-white);
    padding: 60px 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Background decorations */
.panel-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(3, 43, 31, 0.85); /* Dark tint for custom background image readability */
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(245,197,24,0.15) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(7,167,118,0.15) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}
/* Abstract dashed lines */
.bg-decorations {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}

.left-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
}
.top-badge .dot {
    width: 8px;
    height: 8px;
    background: #07A776;
    border-radius: 50%;
    box-shadow: 0 0 8px #07A776;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}
.logo-box {
    width: 48px;
    height: 48px;
    background: var(--highlight);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.3);
}
.logo-box img {
    max-width: 100%;
    max-height: 100%;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text .title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}
.logo-text .subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

.main-heading {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.main-heading .highlight {
    color: var(--highlight);
}

.main-subheading {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 550px;
}

.feature-pills {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.feature-pills .pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
.feature-pills .pill i {
    color: var(--primary-green);
}

.stats-row {
    display: flex;
    gap: 40px;
}
.stat-block h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-block span {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

/* RIGHT PANEL */
.panel-right {
    width: 45%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.theme-toggle {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    background: var(--input-bg);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid var(--input-border);
}
.theme-toggle button {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}
.theme-toggle button.active {
    background: var(--primary-green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(7,167,118,0.3);
}

.right-content {
    width: 100%;
    max-width: 420px;
}

.mobile-logo {
    display: none;
    margin-bottom: 30px;
}

.welcome-heading {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.welcome-subheading {
    font-size: 0.95rem;
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 30px;
}

.portal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.portal-tabs .tab {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--input-border);
    background: transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
}
.portal-tabs .tab.active {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(7,167,118,0.05);
}

.field {
    margin-bottom: 20px;
}
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper .icon-left {
    position: absolute;
    left: 16px;
    color: #9CA3AF;
    font-size: 1rem;
}
.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-family: inherit;
    font-weight: 500;
    transition: 0.3s;
    outline: none;
}
.input-wrapper input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}
.input-wrapper input:focus {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7,167,118,0.1);
}
.toggle-vis {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 1rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.remember-box {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.remember-box input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-green);
    border: 1px solid var(--input-border);
    border-radius: 4px;
}
.remember-box span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
}
.forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}

.btn-signin {
    width: 100%;
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(7,167,118,0.3);
}
.btn-signin:hover {
    background: #068e64;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7,167,118,0.4);
}

.footer-text {
    margin-top: 40px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-gray);
}
.footer-text strong {
    color: var(--primary-dark);
}

.alert-bar {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
.alert-bar.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.alert-bar.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-split-container {
        flex-direction: column;
    }
    .panel-left, .panel-right {
        width: 100%;
    }
    .panel-left {
        padding: 40px 20px;
        min-height: 50vh;
    }
    .main-heading { font-size: 2.5rem; }
    .theme-toggle { position: static; margin-bottom: 30px; display: inline-flex; }
    .panel-right {
        padding: 40px 20px;
    }
    .mobile-logo { display: flex; }
}
