﻿body {
    background-color: #EAEBEC;
    font-family: 'Ubuntu', sans-serif;
}

.main {
    text-align: center;
    background-color: #FFFFFF;
    width: 400px;
    max-width: 90%;
    margin: 7em auto;
    border-radius: 1.5em;
    box-shadow: 0px 11px 35px rgba(0,0,0,0.14);
    padding: 40px;
    box-sizing: border-box;
}

.sign {
    color: #043565;
    font-weight: bold;
    font-size: 23px;
    margin-bottom: 25px;
}

/* ===== NORMAL INPUT ===== */

.inputtext {
    width: 90%;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    background: rgba(136,126,126,0.04);
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid rgba(0,0,0,0.02);
    margin-bottom: 25px;
    text-align: center;
    box-sizing: border-box;
}

    .inputtext:focus {
        border: 2px solid rgba(0,0,0,0.18);
        outline: none;
    }

/* ================= PASSWORD ================= */

.password-wrapper {
    position: relative;
    width: 90%;
    margin: 0 auto 25px auto;
}

    .password-wrapper .inputtext {
        width: 100%;
        margin-bottom: 0;
        padding-left: 45px;
        padding-right: 45px;
        text-align: center;
        box-sizing: border-box;
    }

.toggle-password {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    z-index: 10;
    transition: color .2s;
}

    .toggle-password:hover {
        color: #d47f00;
    }

/* RTL */

html[dir="rtl"] .password-wrapper .inputtext {
    text-align: center;
    padding-left: 45px;
    padding-right: 45px;
}

html[dir="rtl"] .toggle-password {
    left: 18px;
    right: auto;
}

/* ===== PHONE INPUT ===== */

.iti {
    width: 100%;
    margin-bottom: 25px;
    background: rgba(136,126,126,0.04);
    border-radius: 20px;
    border: 2px solid rgba(0,0,0,0.02);
    padding: 0;
    position: relative;
}

    .iti input {
        width: 100%;
        border: none !important;
        background: transparent !important;
        padding: 10px 20px !important;
        padding-left: 90px !important;
        font-weight: 700;
        font-size: 14px;
        text-align: center;
    }

    .iti:focus-within {
        border: 2px solid rgba(0,0,0,0.18);
    }

.iti__flag-container {
    position: absolute;
    left: 15px;
}

/* ===== BUTTON ===== */

.submit {
    width: 100%;
    border-radius: 30px;
    background: #d47f00;
    color: #fff;
    padding: 10px;
    border: none;
    font-weight: bold;
}

/* ===== PASSWORD RULES ===== */

.password-rules {
    width: 90%;
    margin: -5px auto 20px auto;
    background: #f8f9fb;
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    direction: ltr;
    border: 1px solid #ececec;
}

.rule-item {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

    .rule-item:last-child {
        margin-bottom: 0;
    }

/* ===== LANGUAGES ===== */

.language-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

    .language-switcher .lang {
        width: 44px;
        height: 32px;
        border-radius: 8px;
        border: 1px solid #d9d9d9;
        background: #fff;
        color: #667085;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: .25s;
    }

        .language-switcher .lang:hover {
            border-color: #ff7a00;
            color: #ff7a00;
        }

        .language-switcher .lang.active {
            background: #ff7a00;
            border-color: #ff7a00;
            color: #fff;
        }

/* ===== RESPONSIVE ===== */

@media (max-width:768px) {

    .main {
        margin: 2em auto;
        padding: 20px;
        width: 95%;
    }

    .inputtext {
        width: 100%;
    }

    .password-wrapper {
        width: 100%;
    }

    .submit {
        font-size: 15px;
    }

    .sign {
        font-size: 22px;
    }
}
