:root {
    --primary: #003366;
    --primary-light: #0055A4;
    --primary-dark: #001A33;
    --secondary: #C5A059;
    --secondary-light: #D4B475;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-gray: #64748B;
    --border-color: #E2E8F0;
    --error-bg: #FEF2F2;
    --error-text: #DC2626;
    --error-border: #FCA5A5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Headings use Outfit */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Split Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
}

/* Left Side */
.split-left {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.95), rgba(0, 34, 68, 0.98)), url('../img/login_bg.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 40px;
    overflow: hidden;
}

.split-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
    z-index: 1;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.split-left-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.logo-wrapper {
    display: inline-block;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-5px);
}

.logo-wrapper img {
    height: 80px;
    display: block;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.glass-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.stat-item i {
    color: var(--secondary);
}

/* Right Side */
.split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 40px;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-gray);
    font-size: 1.05rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper>i:first-child {
    position: absolute;
    left: 18px;
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.input-icon-wrapper input::placeholder {
    color: #94A3B8;
}

.input-icon-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
}

.input-icon-wrapper input:focus+i,
.input-icon-wrapper input:focus~i:first-child {
    color: var(--primary);
}

.btn-toggle-password {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.btn-toggle-password:hover {
    color: var(--primary);
}

.forgot-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.forgot-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--secondary);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.2);
}

.btn-submit:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.3);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Alert Error */
.alert-error {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 40px;
}

.login-footer p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.login-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer .copyright {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
    }

    .split-left {
        padding: 60px 40px;
        min-height: 45vh;
        flex: none;
    }

    .brand-title {
        font-size: 2.8rem;
    }

    .split-right {
        padding: 60px 24px;
        flex: 1;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .split-left {
        min-height: 40vh;
        padding: 40px 24px;
    }

    .logo-wrapper img {
        height: 60px;
    }

    .brand-title {
        font-size: 2.2rem;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }

    .glass-stats {
        flex-direction: column;
        gap: 10px;
    }
}