:root {
    --primary-green: #278237;
    --secondary-yellow: #f5bb18;
    --text-dark: #272e26;
    --text-gray: #838e91;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--white);
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.login-left {
    flex: 0 0 45%;
    padding: 0px 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--white);
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    /* Hide for Firefox */
    -ms-overflow-style: none;
    /* Hide for IE/Edge */
    align-items: center;
}

.login-left::-webkit-scrollbar {
    display: none;
    /* Hide for Chrome, Safari, and Opera */
}

.login-right {
    flex: 1;
    background: url("../images/login_bg.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.login-logo {
    max-width: 140px;
    height: auto;
}

.top-register-link {
    font-size: 14px;
    color: var(--text-gray);
}

.top-register-link a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
}

.login-content {
    max-width: 450px;
    width: 100%;
    margin: auto 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}
.login-content.register_content {
    max-width: 600px;
    width: 100%;
}

.login-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0px;
}

.login-content h1 span {
    font-weight: 200;
}

/* Network icon chooser */
.network-options {
    display: flex;
    gap: 8px;
    padding: 6px;
    align-items: center;
    justify-content: center;
}
.network-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
}
.network-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.network-icon {
    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.12s ease, box-shadow 0.12s ease, outline 0.12s ease;
}
.network-label {
    display: none; /* hide text, icons only */
}

/* Individual brand colors (simple placeholders) */
.network-jazz {
    background: linear-gradient(180deg, #006b2e, #0d8b3a);
}
.network-telenor {
    background: linear-gradient(180deg, #00a3d9, #0082b3);
}
.network-zong {
    background: linear-gradient(180deg, #00b894, #0aa57a);
}
.network-ufone {
    background: linear-gradient(180deg, #d64545, #b32d2d);
}

/* Checked / Focus styles */
.network-option input[type="radio"]:focus + .network-icon,
.network-option input[type="radio"]:checked + .network-icon {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(3, 139, 69, 0.18);
    outline: 3px solid rgba(3, 139, 69, 0.12);
}

/* Ensure wrapper matches earlier sizing */
.network-select-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

/* Custom dropdown (icon + label) for network select */
.network-select-dropdown {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.network-select-dropdown .network-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
}
.network-select-dropdown .network-selected .fa-chevron-down {
    margin-left: auto;
    color: #838e91;
}
.network-options-list {
    position: absolute;
    left: 6px;
    top: calc(100% + 6px);
    z-index: 40;
    min-width: 160px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 8px;
    list-style: none;
    margin: 0;
    display: none;
}
.network-options-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s, transform 0.08s;
}
.network-options-list li:hover {
    background: #f7faf8;
    transform: translateX(4px);
}
.network-options-list li.selected {
    background: rgba(3, 139, 69, 0.04);
    outline: 2px solid rgba(3, 139, 69, 0.06);
}
.network-label-visible {
    font-weight: 600;
    color: var(--text-dark);
}

/* smaller icons inside dropdown */
.network-options-list .network-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}
.network-selected .network-icon {
    height: 22.4px;
    object-fit: contain;
}

/* Show only icon in the closed select (hide network name) */
.network-selected .network-name {
    display: none;
}
.network-selected {
    justify-content: flex-start;
}

/* ensure wrapper sizing consistent with input group */
.network-select-wrapper {
    flex: 0 0 140px;
    border-right: 1px solid #e5e7eb;
    padding: 0;
}

.login-content p.subtext {
    color: #838e91;
    font-size: 14px;
    margin-bottom: 16px;
}

.form-group-custom {
    margin-bottom: 16px;
    position: relative;
}

.form-label-custom {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.form-control-custom,
select.form-control-custom {
    background-color: var(--bg-light);
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    padding: 10px 20px;
    width: 100%;
    font-size: 13px;
    color: var(--text-dark);
    transition: all 0.3s;
}

select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23838e91' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.input-group-combined {
    display: flex;
    background-color: var(--bg-light);
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    overflow: visible; /* allow dropdown to escape the input container */
    transition: all 0.3s;
}

.input-group-combined:focus-within {
    border-color: var(--primary-green) !important;
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(39, 130, 55, 0.05);
}

.network-select-wrapper {
    flex: 0 0 100px;
    border-right: 1px solid #e5e7eb;
}

.network-select-wrapper select.network-select {
    border: none !important;
    border-radius: 0;
    padding: 14px 15px;
    background-color: transparent;
    height: 100%;
    width: 100%;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23272E26' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.input-group-combined .phone-input {
    flex: 1;
    border: none !important;
    background-color: transparent;
    border-radius: 0;
    padding: 10px 20px;
    font-size: 13px;
}

.input-group-combined .phone-input:focus {
    box-shadow: none;
    background-color: transparent;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(39, 130, 55, 0.05);
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 39px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 14px;
}

.forgot-password {
    text-align: right;
    margin-top: 5px;
}

.forgot-password a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-password a span {
    font-weight: 300;
}

.btn-login-yellow {
    background-color: var(--secondary-yellow);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    padding: 9px 16px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-login-yellow:hover {
    background-color: #e5b00a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 187, 24, 0.2);
}

.login-footer {
    text-align: center;
    margin-top: 18px;
    padding-bottom: 0px;
}

.powered-by {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
}

.contact-info a {
    color: var(--primary-green);
    text-decoration: none;
}

.login-banner-img {
    max-width: 80%;
    height: auto;
    z-index: 2;
}

/* Home Button */
.home-btn-container {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.home-btn {
    background: var(--primary-green);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 1200px) {
    .login-left {
        flex: 0 0 50%;
    }
}

@media (max-width: 991px) {
    .login-left {
        flex: 0 0 100%;
        padding: 40px;
    }

    .login-right {
        display: none;
    }

    .login-content {
        margin: 40px auto;
    }
}

@media (max-width: 576px) {
    .login-left {
        padding: 20px;
    }

    .login-top-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .login-content h1 {
        font-size: 20px;
    }
}
.network-options-list li img {
    width: 50px;
    height: 30px;
    object-fit: contain;
}

#signUp-captcha-div img,
#login-captcha-div img {
    max-width: 100% !important;
}
