﻿:root {
    --color-gray-200: oklch(92.8% .006 264.531);
}

.login-form {
    padding: 16px;
    background-color: #fff;
    height: 100%;
}

.input-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    position: relative;
    height: 48px;
}

.input-icon {
    width: 52px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ddd;
    color: #c4c4c4;
    font-size: 18px;
}

.input-control input {
    flex: 1;
    border: none;
    padding: 0 12px;
    font-size: 16px;
    height: 100%;
    outline: none;
    color: #333;
    background: transparent;
    font-size: 14px;
}

    .input-control input::placeholder {
        color: #bbb;
    }

.input-eye {
    position: absolute;
    right: 14px;
    color: #c4c4c4;
    font-size: 18px;
    cursor: pointer;
}

.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
    font-size: 16px;
    color: #333;
}

    .input-wrapper input::placeholder {
        color: #aaa;
    }

.password-toggle {
    position: absolute;
    right: 15px;
    color: #bbb;
    font-size: 18px;
    cursor: pointer;
}

.login-btn {
    position: relative;
    width: 100%;
    height: 42px;
    background: var(--background-primary);
    color: #FFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.3s ease-in-out;
}

    .login-btn:disabled {
        opacity: 0.6;
        pointer-events: none;
    }

    .login-btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid transparent;
        border-top: 2px solid #333;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .login-btn.loading {
        font-size: 0;
        color: transparent;
    }

    .login-btn:hover {
        background-color: #91186a;
    }

.form-links {
    display: flex;
    font-size: 14px;
    margin: 15px 0;
    gap: 100px;
}

    .form-links .signup-link {
        color: #5D8FFC;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        white-space: nowrap;
        align-content: center
    }

        .form-links .signup-link:hover {
            color: #0026ff;
        }

    .form-links .forgot-link {
        color: #929699;
        text-align: right;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

        .form-links .forgot-link:hover {
            color: #444444;
        }


.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

    .divider::before,
    .divider::after {
        content: '';
        height: 1px;
        background: #ccc;
        position: absolute;
        top: 50%;
        width: 40%;
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

    .divider span {
        background: #fff;
        padding: 0 10px;
        color: #666;
        font-size: 14px;
    }

.welcome-text {
    font-size: 48px;
    color: #c20082;
    text-shadow: 1px 1px 2px #aaa;
    font-weight: 300;
    margin-bottom: 20px;
}

.logo-img {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.subtitle {
    font-weight: bold;
    color: #666;
    font-size: 16px;
    letter-spacing: 1px;
}

.signin-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 10px 16px;
    background-color: #FFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    height: 45px;
}

    .social-btn:hover {
        background-color: var(--color-gray-200);
    }

    .social-btn img {
        position: absolute;
        left: 16px;
        width: 20px;
        height: 20px;
    }

    .social-btn span {
        font-size: 14px;
        font-weight: 500;
        color: #333;
        text-align: center;
        width: 100%;
    }

/*--------------------------------------------------------------
# Forgot Password/Activate Account
----------------------------------------------------------------*/

    .forgot-pass h5,
    .reset-pass h5 {
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 15px;
    }

.instruction {
    color: #AAA;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    margin-bottom: 20px;
}

.forgot-form {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #AAA;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.submit-btn {
    position: relative;
    background: var(--background-primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    width: 145px;
    height: 45px;
    transition: background-color 0.3s ease-in-out;
}

    .submit-btn.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid transparent;
        border-top: 2px solid #333;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .submit-btn.loading {
        font-size: 0;
        color: transparent;
    }

    .submit-btn:disabled {
        opacity: 0.6;
        pointer-events: none;
    }

    .submit-btn:hover {
        background-color: #91186a;
    }


/*--------------------------------------------------------------
# Signup
----------------------------------------------------------------*/
    .signup h2 {
        margin-bottom: 20px;
    }

.signup-form {
    background: #FFF;
    padding: 25px;
    border-radius: 12px;
}

.form-group label {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #939393;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 45px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 14px;
    color: #444444;
}

    .form-group input:focus,
    .form-group select:focus {
        border: 1px solid var(--background-primary);
        outline: none;
    }

@media (max-width: 768px) {
    .signup {
        padding: 15px;
    }

    .signup-form {
        padding: 15px;
    }

    .identity-type-tags {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        height: auto;
    }

    .btn-register {
        width: 100%;
    }

    .form-group input,
    .form-group select,
    .gender-dropdown,
    .countrycode-dropdown {
        font-size: 14px;
        height: 42px;
    }
}

legend {
    float: none !important;
    width: auto !important;
    padding: 0 10px;
    margin-bottom: 0;
    font-style: italic;
    color: #ACACAC;
    font-size: 12px;
}

.identity-type-tags {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    height: 45px;
}

.identity-btn {
    flex: 1 1 50%;
    padding: 7px 0;
    font-size: 14px;
    font-weight: 500;
    color: #777;
    background-color: #ddd;
    border: 1px solid #ccc;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s, color 0.2s;
    margin: 0;
    text-align: center;
}

    .identity-btn:first-child {
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
    }

    .identity-btn:last-child {
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
        margin-left: -1px; /* prevent double border */
    }

    .identity-btn.active {
        background-color: #fff;
        color: #444;
        z-index: 2;
        position: relative;
    }

.btn-register {
    position: relative;
    background: var(--background-primary);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    width: 145px;
    height: 45px;
    transition: background-color 0.3s ease-in-out;
}

    .btn-register.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border: 2px solid transparent;
        border-top: 2px solid #333;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .btn-register.loading {
        font-size: 0;
        color: transparent;
    }

.btn-register:disabled {
    opacity: 0.6;
    pointer-events: none;
}

    .btn-register:hover {
        background-color: #91186a;
    }

.toggle-password-signin,
.toggle-password-signup,
.toggle-password-reset {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ACACAC;
    font-size: 20px;
}

    .toggle-password-signin:hover,
    .toggle-password-signup:hover {
        color: #444444;
    }

.gender-dropdown {
    width: 100%;
    height: 45px;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #FFF;
    color: #444;
    font-size: 14px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .gender-dropdown.open {
        border: 1px solid var(--background-primary);
    }

    .gender-dropdown .selected {
        color: #9e9e9e;
    }

    .gender-dropdown.open .selected {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .gender-dropdown .dropdown-options {
        position: absolute;
        width: 100%;
        top: calc(100% + 5px);
        left: 0;
        background: #FFF;
        border: 1px solid #ccc;
        max-height: 200px;
        overflow-y: auto;
        display: none;
        z-index: 1000;
        border-radius: 6px;
        padding: 0;
    }

    .gender-dropdown.open .dropdown-options {
        display: block;
    }

.dropdown-options li {
    list-style: none;
    margin: 0;
    padding: 10px;
}

    .dropdown-options li:hover {
        background-color: #f5f5f5;
    }

.countrycode-dropdown {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCC;
    border-radius: 8px;
    background-color: #FFF;
    color: #444444 !important;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    position: relative;
}

    .countrycode-dropdown.open {
        border: 1px solid var(--background-primary);
    }

    .countrycode-dropdown .selected {
        color: #9e9e9e;
    }

    .countrycode-dropdown.open .selected {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .countrycode-dropdown .dropdown-options {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: #FFF;
        border: 1px solid #ccc;
        max-height: 200px;
        display: none;
        z-index: 1000;
        border-radius: 12px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        clip-path: inset(0 round 12px);
    }


    .countrycode-dropdown.open .dropdown-options {
        display: block;
    }

.dropdown-options li {
    list-style: none;
    margin: 0;
    padding: 10px;
}

    .dropdown-options li:hover {
        background-color: #f5f5f5;
    }

    .topup-complete .btn-ok {
        background-color: var(--background-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 120px;
        height: 42px;
        color: #fff;
        border: 0;
        border-radius: 12px;
        transition: background-color 0.3s ease-in-out;
    }

.topup-complete .btn-ok:hover {
    background-color: #91186a;
}
