:root {
    --ekha-green: #005028; /* Base dark green from ekhasite */
    --ekha-green-hover: #09220f; /* Darker black-green */
    --thm-primary: #D03840; /* Red from ekhasite */
    --thm-primary-hover: #b53138;
    --light-bg: #f3f6f7;
    --text-dark: #020e0c;
    --text-muted: #838e91;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-dark);
}

/* Split Layout */
.split-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Custom Background Pane */
.custom-bg-pane {
    background-color: var(--ekha-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Subtle dot pattern */
.custom-bg-pane::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 30px 30px;
    pointer-events: none;
}

.brand-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 1;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.custom-bg-pane h1, .custom-bg-pane h2 {
    color: white !important;
}

.custom-bg-pane h1 {
    font-weight: 700;
    font-size: 2.8rem;
    text-align: center;
    margin: 0;
    line-height: 1.1;
    z-index: 1;
    letter-spacing: -0.5px;
}

.custom-bg-pane p {
    color: white !important;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    font-weight: 300;
    z-index: 1;
}

.custom-bg-pane .divider {
    width: 60px;
    border: 2px solid white;
    opacity: 1;
    margin-top: 2rem;
    z-index: 1;
}

/* Right Pane (Form) */
.right-pane {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    position: relative;
}

.form-container {
    background: white;
    padding: 3.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.5s ease-out;
}

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

.form-title {
    color: var(--ekha-green);
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Customizing Bootstrap Inputs */
.input-group {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.input-group:focus-within {
    border-color: var(--ekha-green);
    box-shadow: 0 0 0 4px rgba(39, 168, 95, 0.1);
    background-color: #fff;
}

.input-group-text {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 1rem;
    transition: color 0.2s ease;
}

.input-group:focus-within .input-group-text {
    color: var(--ekha-green);
}

.form-control {
    background-color: transparent;
    border: none;
    padding: 0.8rem 1rem 0.8rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.form-control:focus {
    box-shadow: none;
    background-color: transparent;
}

.cursor-pointer {
    cursor: pointer;
}

/* Button */
.btn-primary {
    background-color: var(--thm-primary);
    border-color: var(--thm-primary);
    padding: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(208, 56, 64, 0.2); /* red shadow */
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--thm-primary-hover);
    border-color: var(--thm-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(208, 56, 64, 0.3);
}

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

/* Links */
.forgot-link {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--ekha-green) !important;
}

.footer-text {
    position: absolute;
    bottom: 24px;
    width: 100%;
    text-align: center;
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 991px) {
    .split-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .custom-bg-pane {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 3rem 1.5rem;
        text-align: center;
    }
    .brand-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    .custom-bg-pane h1 {
        font-size: 2rem;
    }
    .custom-bg-pane p {
        font-size: 1.2rem;
    }
    .custom-bg-pane .divider {
        margin-top: 1rem;
    }
    .right-pane {
        width: 100%;
        height: auto;
        flex: 1;
        align-items: flex-start;
        padding: 2rem 1rem 4rem 1rem;
    }
    .form-container {
        box-shadow: none;
        background: transparent;
        padding: 0;
        max-width: 100%;
    }
    .footer-text {
        position: relative;
        margin-top: 2rem;
        bottom: 0;
    }
}
