
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}



.form-section {
    width: 50%;
    max-width: 480px;
    padding-bottom: 5rem;
}

.form-section h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.form-section p {
    color: #cfd3d0;
    text-align: center;

    margin: 10px 0 30px;
    font-size: 1.1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
}

input[type="password"],
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: none;
    border-radius: 25px;
    background-color: #2e2e2e;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

input::placeholder {
    color: #a5a5a5;
}
/*.translate {*/
/*    position: absolute;*/
/*    top: 5%;*/
/*    right: 5%;*/
/*    z-index: 3;*/
/*    display: flex;*/
/*}*/
.translate button {
    background: transparent;
    border: none;
    margin-bottom: 20px;
    cursor: pointer;
    margin-right: 10px;
}
.translate button img {
    height: 30px;
    width: 30px;
    image-rendering: crisp-edges;
    border-radius: 50%;
}
.arabic-btn,
.eng-btn {
    border: 2px solid #90c8af;
}
.eng-btn {
    float: left;
}
.translate button:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
/* changed code: make the eye toggle an interactive button and style the svg inside it */
.eye-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.eye-icon svg {
    fill: #a5a5a5;
    width: 22px;
    height: 22px;
    pointer-events: none; /* let the button receive clicks */
}

/* when password is visible, tint the icon */
.eye-icon[aria-pressed="true"] svg {
    fill: #90c8af;
}

.remember-forgot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cfd3d0;
}

.remember-forgot a {
    color: #90c8af;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

button {
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: #90c8af;
    color: #fff;
    padding: 14px;
}

.login-btn:hover {
    filter: brightness(1.15);
}

.google-btn {
    background-color: #c44531;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
}

.google-btn img {
    height: 22px;
}

.google-btn:hover {
    filter: brightness(1.1);
}

.account-btns {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.account-btns .sec-btn {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    background: transparent;
    color: #fff;
    border: 1px solid #90c8af;
    transition: all 0.3s ease;
}
.first-btn {
    background: #fff;
    color: #000;
    border: none;
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.account-btns button:hover {
    background: #90c8af;
    color: #fff;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #aaa;
    font-size: 0.9rem;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #555;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.uae-btn {
    background: #f0f0f0;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
}

.uae-btn:hover {
    filter: brightness(0.9);
}

.uae-btn img {
    height: 22px;
}

/* changed code: anchor phone to container bottom-right so it visually touches the corner */
.phone-section {
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 2;
}

.phone-section img {
    max-width: 90%;
    height: auto;
    display: block;
    transition: transform 450ms cubic-bezier(0.22, 0.9, 0.3, 1),
    filter 400ms;
    transform-origin: center center;
    will-change: transform;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

/* Tablet: 769px — 992px */
@media (min-width: 769px) and (max-width: 992px) {
    /* keep desktop container untouched outside this scope */
    .container {
        flex-direction: column;
        gap: 40px;
        height: auto; /* allow content to grow */
        padding-top: 3.5rem;
        align-items: center;
    }

    .form-section {
        width: 90%;
        max-width: 720px;
        margin: 0 auto;
        padding-bottom: 1.5rem;
    }

    /* hide phone/hand on tablet */
    .phone-section {
        display: none;
    }

    .form-section h1 {
        font-size: 2.2rem;
    }
}

/* Mobile: up to 768px */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 24px;
        height: 100svh;
        padding: 2rem 1rem;
        align-items: stretch;
        justify-content: center;
    }

    .form-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0.5rem 1rem;
    }

    .form-section h1 {
        text-align: center;
        font-size: 1.6rem;

        margin-left: 4px;
    }

    /* inputs/buttons slightly smaller on mobile */
    input[type="password"],
    input[type="text"],
    input[type="email"] {
        padding: 12px 64px 12px 16px;
        font-size: 0.95rem;
        border-radius: 22px;
    }

    /* ensure eye plate fits mobile inputs */
    .eye-icon {
        right: 12px;
        width: 36px;
        height: 36px;
    }

    /* compact buttons on mobile */
    .login-btn,
    .google-btn,
    .uae-btn,
    .first-btn,
    .sec-btn {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .account-btns {
        flex-direction: column;
        gap: 10px;
    }

    .divider::before,
    .divider::after {
        width: 30%;
    }
    .phone-section {
        display: none;
    }
}

/* Parallax + phone animations */
.container {
    perspective: 1000px;
    --bg-pos-x: 50%;
    --bg-pos-y: 50%;
    background-position: var(--bg-pos-x) var(--bg-pos-y);
    transition: background-position 450ms cubic-bezier(0.22, 0.9, 0.3, 1);
}

.phone-section img {
    transition: transform 450ms cubic-bezier(0.22, 0.9, 0.3, 1),
    filter 400ms;
    transform-origin: center center;
    will-change: transform;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

/* subtle hover scale so element feels alive on pointer hover */
.phone-section:hover img {
    transform: translateY(-6px) scale(1.02);
}

/* idle floating animation when not interacting */
@keyframes phone-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}
.phone-section.idle img {
    animation: phone-float 6s ease-in-out infinite;
}
