@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #b58a4c;
    --primary-dark: #96703b;
    --dark: #171717;
    --text: #222222;
    --muted: #777777;
    --border: #e5e5e5;
    --background: #f7f7f6;
    --white: #ffffff;
    --danger: #d94b4b;
    --success: #2f9e63;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =========================================
   MAIN PAGE
========================================= */

.auth_page {
    width: 100%;
    min-height: 100vh;
    display: flex;
}


/* =========================================
   LEFT VISUAL AREA
========================================= */

.auth_visual {
    position: relative;
    width: 50%;
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(15, 18, 20, 0.58),
            rgba(15, 18, 20, 0.78)
        ),
        url("images/dubai-realestate.jpg");

    background-size: cover;
    background-position: center;

    color: #ffffff;
    overflow: hidden;
}


.visual_overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(181, 138, 76, 0.25),
            transparent 40%
        );
}


.visual_content {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    padding: 55px 70px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* =========================================
   LOGO
========================================= */

.brand_logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo_icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

   // background: var(--primary);
   background:white;

    color: #ffffff;

    font-size: 23px;
}
.logo_icon img{
	width:100%;
	height:100%;
	object-fit:cover;
}

.logo_text {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo_text span {
    color: var(--primary);
}


/* =========================================
   VISUAL TEXT
========================================= */

.visual_text {
    margin-top: auto;
    margin-bottom: 55px;
}

.visual_text h1 {
    font-size: clamp(42px, 4vw, 68px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -2px;
}

.visual_text h1 span {
    color: var(--primary);
}

.visual_text p {
    max-width: 520px;

    margin-top: 25px;

    color: rgba(255,255,255,0.76);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================
   FEATURES
========================================= */

.visual_features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visual_feature {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 13px;
    color: rgba(255,255,255,0.88);
}

.feature_icon {
    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(181, 138, 76, 0.2);
    color: var(--primary);

    font-size: 15px;
}


.visual_bottom {
    position: absolute;
    bottom: 25px;
    left: 70px;
    right: 70px;

    display: flex;
    justify-content: space-between;

    font-size: 11px;
    color: rgba(255,255,255,0.45);
}


/* =========================================
   RIGHT AUTH AREA
========================================= */

.auth_area {
    width: 50%;
    min-height: 100vh;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;
}


.auth_container {
    width: 100%;
    max-width: 440px;
}


/* =========================================
   MOBILE LOGO
========================================= */

.mobile_logo {
    display: none;
    margin-bottom: 45px;
}


/* =========================================
   AUTH SCREEN
========================================= */

.auth_screen {
    display: none;

    animation: fadeIn 0.35s ease;
}

.auth_screen.active {
    display: block;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   HEADER
========================================= */

.auth_header {
    margin-bottom: 35px;
}

.auth_header h2 {
    font-size: 31px;
    font-weight: 600;
    letter-spacing: -1px;
}

.auth_header p {
    margin-top: 9px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================
   FORM
========================================= */

.auth_form {
    width: 100%;
}

.form_group {
    margin-bottom: 22px;
}

.form_group label {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 500;

    color: #444;
}


.label_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label_row a {
    color: var(--primary);

    text-decoration: none;

    font-size: 11px;
    font-weight: 500;
}

.label_row a:hover {
    text-decoration: underline;
}


/* =========================================
   INPUT
========================================= */

.input_wrap {
    position: relative;

    width: 100%;
}

.input_wrap > i {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #999;

    font-size: 18px;

    pointer-events: none;
}

.input_wrap input {
    width: 100%;
    height: 53px;

    padding: 0 48px;

    border: 1px solid var(--border);
    border-radius: 9px;

    outline: none;

    background: #ffffff;

    font-size: 13px;

    color: var(--text);

    transition: 0.2s ease;
}

.input_wrap input::placeholder {
    color: #aaa;
}

.input_wrap input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(181, 138, 76, 0.08);
}


/* =========================================
   PASSWORD TOGGLE
========================================= */

.password_toggle {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #999;

    font-size: 19px;
}

.password_toggle:hover {
    color: var(--primary);
}


/* =========================================
   ERRORS
========================================= */

.input_error {
    min-height: 16px;

    margin-top: 5px;

    font-size: 10px;

    color: var(--danger);
}

.input_wrap.error input {
    border-color: var(--danger);
}

.input_wrap.success input {
    border-color: var(--success);
}


/* =========================================
   REMEMBER
========================================= */

.remember_row {
    margin-bottom: 25px;
}

.checkbox_label {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #777;

    font-size: 11px;

    cursor: pointer;
}

.checkbox_label input {
    display: none;
}

.custom_checkbox {
    width: 16px;
    height: 16px;

    border: 1px solid #d7d7d7;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox_label input:checked + .custom_checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox_label input:checked + .custom_checkbox::after {
    content: "✓";

    color: #ffffff;

    font-size: 10px;
}


/* =========================================
   MAIN BUTTON
========================================= */

.auth_btn {
    width: 100%;
    height: 53px;

    border: none;
    border-radius: 9px;

    background: var(--dark);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 13px;
    font-weight: 500;

    transition: 0.25s ease;
}

.auth_btn:hover {
    background: #000000;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.12);
}

.auth_btn > i {
    font-size: 18px;
}

.auth_btn.loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn_loader {
    display: none;

    width: 16px;
    height: 16px;

    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

.auth_btn.loading .btn_loader {
    display: block;
}

.auth_btn.loading .btn_text,
.auth_btn.loading > i {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================
   DIVIDER
========================================= */

.divider {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 25px 0;

    color: #aaa;

    font-size: 9px;
}

.divider::before,
.divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #eeeeee;
}


/* =========================================
   OTP LOGIN BUTTON
========================================= */

.otp_login_btn {
    width: 100%;
    height: 53px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #ffffff;

    color: #333;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    font-size: 12px;
    font-weight: 500;

    transition: 0.2s ease;
}

.otp_login_btn i {
    color: var(--primary);

    font-size: 19px;
}

.otp_login_btn:hover {
    border-color: var(--primary);

    color: var(--primary);

    background: #fffdf9;
}


/* =========================================
   FOOTER
========================================= */

.auth_footer {
    margin-top: 30px;

    text-align: center;
}

.auth_footer p {
    color: #888;

    font-size: 11px;
}

.auth_footer a {
    color: var(--primary);

    text-decoration: none;

    font-weight: 500;
}


/* =========================================
   OTP SCREEN
========================================= */

.back_button {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 35px;

    border: none;

    background: transparent;

    color: #777;

    font-size: 11px;
}

.back_button:hover {
    color: var(--primary);
}

.back_button i {
    font-size: 17px;
}


.otp_icon {
    width: 65px;
    height: 65px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(181, 138, 76, 0.1);

    color: var(--primary);

    font-size: 29px;
}


.otp_header {
    margin-bottom: 30px;
}

.otp_header strong {
    display: inline-block;

    margin-top: 5px;

    color: #333;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   OTP INPUTS
========================================= */

.otp_inputs {
    display: flex;

    gap: 9px;

    margin-bottom: 5px;
}

.otp_input {
    width: 100%;
    height: 58px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #ffffff;

    outline: none;

    text-align: center;

    font-size: 20px;
    font-weight: 600;

    color: #222;

    transition: 0.2s ease;
}

.otp_input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(181, 138, 76, 0.08);
}

.otp_input.filled {
    border-color: #cdb38b;
}


/* =========================================
   OTP ERROR
========================================= */

.otp_error {
    text-align: center;

    margin-bottom: 8px;
}


/* =========================================
   RESEND
========================================= */

.resend_area {
    margin-top: 25px;

    text-align: center;

    color: #888;

    font-size: 11px;
}

.resend_area button {
    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 11px;
    font-weight: 600;
}

.resend_area button:disabled {
    color: #bbb;

    cursor: not-allowed;
}

.otp_timer {
    margin-top: 8px;

    font-size: 10px;

    color: #aaa;
}

.otp_timer strong {
    color: #777;

    font-weight: 600;
}


/* =========================================
   SECURITY NOTE
========================================= */

.secure_note {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 35px;

    color: #aaa;

    font-size: 10px;

    text-align: center;
}

.secure_note i {
    color: var(--success);

    font-size: 17px;
}


/* =========================================
   SUCCESS
========================================= */

.success_screen {
    text-align: center;
}

.success_icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(47, 158, 99, 0.1);

    color: var(--success);

    font-size: 35px;
}

.success_screen h2 {
    font-size: 27px;
    font-weight: 600;
}

.success_screen p {
    margin-top: 10px;

    color: #888;

    font-size: 12px;
}

.success_loader {
    width: 25px;
    height: 25px;

    margin: 25px auto;

    border: 2px solid #eee;
    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .auth_visual {
        width: 42%;
    }

    .auth_area {
        width: 58%;

        padding: 40px;
    }

    .visual_content {
        padding: 40px;
    }

    .visual_bottom {
        left: 40px;
        right: 40px;
    }

    .visual_text h1 {
        font-size: 42px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .auth_page {
        display: block;

        min-height: 100vh;
    }

    .auth_visual {
        display: none;
    }

    .auth_area {
        width: 100%;
        min-height: 100vh;

        padding: 30px 22px;

        align-items: flex-start;
    }

    .auth_container {
        max-width: 500px;

        margin: auto;
    }

    .mobile_logo {
        display: block;
    }

    .mobile_logo .brand_logo {
        justify-content: center;
    }
	.mobile_logo .brand_logo span.logo_icon img {
       width:100px;
	   height:100px;
    }

    .auth_header h2 {
        font-size: 28px;
    }

    .otp_input {
        height: 55px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .auth_area {
        padding: 25px 18px;
    }

    .mobile_logo {
        margin-bottom: 35px;
    }

    .logo_text {
        font-size: 20px;
    }

    .auth_header h2 {
        font-size: 25px;
    }

    .otp_inputs {
        gap: 6px;
    }

    .otp_input {
        height: 50px;

        font-size: 18px;
    }

}

