/* ==========================================================
   GLOBAL
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;700;800;900&display=swap');

:root {
    --primary: #1c8aff;
    --primary-hover: #0f76e8;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --success: #16a34a;
    --danger: #dc2626;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
}

body {
    font-family: "Cairo", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(28, 138, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 45%, #f9fafb 100%);
    color: var(--text);
    min-height: 100vh;
    padding: 24px;
}

html, body, body * {
    font-family: "Cairo", sans-serif;
}

/* ==========================================================
   LAYOUT
========================================================== */

.login-container,
.signup-container {
    width: 100%;
    max-width: 1240px;
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

/* ==========================================================
   RIGHT SIDE (FORM)
========================================================== */

.login-right,
.signup-right {
    width: 50%;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
}

.login-logo,
.signup-logo {
    margin-bottom: 18px;
}

.login-logo img,
.signup-logo img {
    width: 82px;
    height: auto;
    display: block;
}

.login-title,
.signup-title {
    font-size: clamp(1.8rem, 2.6vw, 2.35rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 8px;
}

.login-subtitle,
.signup-subtitle {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 26px;
    max-width: 520px;
}

/* ==========================================================
   ALERTS
========================================================== */

.alert {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.alert-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

/* ==========================================================
   GOOGLE BUTTON
========================================================== */

.google-btn {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    transition: 0.25s ease;
}

.google-btn:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.google-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ==========================================================
   DIVIDER
========================================================== */

.divider {
    position: relative;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    margin: 18px 0 22px;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 52px);
    height: 1px;
    background: linear-gradient(to left, transparent, #dbe3ee, transparent);
    transform: translateY(-50%);
}

.divider::before {
    right: 0;
}

.divider::after {
    left: 0;
}

/* ==========================================================
   FORM
========================================================== */

form {
    width: 100%;
}

/* ==========================================================
   INPUTS
========================================================== */

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper input {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    background: var(--white);
    padding: 0 56px 0 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    outline: none;
    transition: 0.25s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.input-wrapper input:hover {
    border-color: #cbd5e1;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(28, 138, 255, 0.10);
}

.input-wrapper input:invalid:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.10);
}

/* Icons */
.input-wrapper::before {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background-color: #f3f6fb;
    background-image: url('/assets/images/icons/email.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 58%;
    pointer-events: none;
}

.input-wrapper.password::before {
    background-image: url('/assets/images/icons/password.png');
}

/* Email valid check */
.input-wrapper.email.valid::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #eafff1 url('/assets/images/icons/checkgreen.png') center / 65% no-repeat;
}

/* ==========================================================
   FLOATING LABEL
========================================================== */

.input-wrapper .float-label {
    position: absolute;
    top: 50%;
    right: 56px;
    transform: translateY(-50%);
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    transition: 0.22s ease;
}

.input-wrapper input:focus + .float-label,
.input-wrapper input:not(:placeholder-shown) + .float-label {
    top: 0;
    right: 16px;
    transform: translateY(-50%);
    background: var(--white);
    padding: 0 8px;
    font-size: 12px;
    color: var(--primary);
}

/* ==========================================================
   PASSWORD TOGGLE
========================================================== */

.toggle-password {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: #f3f6fb url('/assets/images/icons/showpass.png') center / 58% no-repeat;
    cursor: pointer;
    transition: 0.2s ease;
}

.toggle-password:hover {
    background-color: #e8eef8;
}

.toggle-password.active {
    background-image: url('/assets/images/icons/hidepass.png');
}

/* ==========================================================
   REMEMBER
========================================================== */

.remember-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 6px 0 18px;
    font-size: 14px;
    color: var(--muted);
}

.remember-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* ==========================================================
   SUBMIT
========================================================== */

.submit-btn {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #4aa3ff);
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 18px;
    transition: 0.25s ease;
    box-shadow: 0 16px 30px rgba(28, 138, 255, 0.24);
}

.submit-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==========================================================
   SIGNUP ROW
========================================================== */

.signup-row {
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 18px;
}

.signup-row a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s ease;
}

.signup-row a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ==========================================================
   POLICY
========================================================== */

.policy-text {
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
    color: #94a3b8;
    max-width: 420px;
    margin: 0 auto;
}

/* ==========================================================
   LEFT SIDE SLIDER
========================================================== */





.slider-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-image.active {
    display: block;
}


/* ==========================================================
   SLIDER DOTS
========================================================== */

.login-slider-controls,
.signup-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.25s ease;
}

.dot:hover {
    background: #94a3b8;
}

.dot.active {
    width: 28px;
    background: var(--primary);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {
    body {
        padding: 16px;
    }

    .login-container,
    .signup-container {
        min-height: auto;
        flex-direction: column-reverse;
        border-radius: 24px;
    }

    .login-right,
    .signup-right,
    .login-left,
    .signup-left {
        width: 100%;
    }

    .login-right,
    .signup-right {
        padding: 34px 26px;
    }

    .login-left,
    .signup-left {
        min-height: 280px;
        padding: 20px;
        border-inline-start: 0;
        border-bottom: 1px solid rgba(203, 213, 225, 0.5);
    }

    .login-left::before,
    .signup-left::before {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .login-container,
    .signup-container {
        border-radius: 18px;
    }

    .login-right,
    .signup-right {
        padding: 28px 18px;
    }

    .login-logo img,
    .signup-logo img {
        width: 72px;
    }

    .login-title,
    .signup-title {
        font-size: 24px;
    }

    .login-subtitle,
    .signup-subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .input-wrapper input,
    .submit-btn,
    .google-btn {
        min-height: 54px;
    }

    .policy-text {
        font-size: 12px;
    }
}