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

:root {
    --sky: #d6eafa;
    --sky-mid: #92c4e8;
    --blue: #378add;
    --blue-dk: #185fa5;
    --navy: #0c447c;
    --deep: #042c53;
    --ink: #0d1b2a;
    --white: #ffffff;
    --off: #f5f7fa;
    --muted: #8b9eaf;
}

html,
body {
    height: 100%;
    font-family: "Cairo", sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background: var(--off);
}

/* ════════════════════════════
           LEFT — photo panel
        ════════════════════════════ */
.side-photo {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-image: url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1200&auto=format&fit=crop&q=80");
    background-size: cover;
    background-position: center center;
}

.side-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(4, 44, 83, 0.78) 0%,
        rgba(12, 68, 124, 0.52) 45%,
        rgba(4, 44, 83, 0.82) 100%
    );
    z-index: 1;
}

.side-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 60% 40%,
        transparent 35%,
        rgba(4, 44, 83, 0.45) 100%
    );
    z-index: 2;
}

.photo-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3.5rem 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(55, 138, 221, 0.16);
    border: 1px solid rgba(146, 196, 232, 0.3);
    border-radius: 40px;
    padding: 7px 16px 7px 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sky-mid);
}

.badge-text {
    font-size: 0.72rem;
    color: var(--sky);
    letter-spacing: 1.4px;
    font-weight: 400;
}

.photo-headline {
    font-size: 3.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.photo-headline em {
    font-style: normal;
    color: var(--sky-mid);
}

.photo-desc {
    font-size: 0.93rem;
    color: rgba(214, 234, 250, 0.78);
    font-weight: 300;
    line-height: 1.95;
    max-width: 370px;
    margin-bottom: 2.6rem;
}

.stats-strip {
    display: flex;
    border: 1px solid rgba(146, 196, 232, 0.2);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    background: rgba(4, 44, 83, 0.38);
    width: fit-content;
}

.stat-cell {
    padding: 1rem 1.8rem;
    text-align: center;
    border-left: 1px solid rgba(146, 196, 232, 0.14);
}

.stat-cell:last-child {
    border-left: none;
}

.stat-n {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--sky-mid);
    display: block;
    line-height: 1;
}

.stat-l {
    font-size: 0.72rem;
    color: rgba(214, 234, 250, 0.6);
    display: block;
    margin-top: 5px;
}

/* ════════════════════════════
           RIGHT — form panel
        ════════════════════════════ */
.side-form {
    flex: 0 0 460px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 3.2rem;
    position: relative;
    box-shadow: -16px 0 60px rgba(4, 44, 83, 0.1);
}

.side-form::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--sky-mid) 100%);
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--deep);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-copy {
    display: flex;
    flex-direction: column;
}

.logo-ar {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--deep);
    line-height: 1.1;
}

.logo-en {
    font-size: 0.67rem;
    color: var(--muted);
    letter-spacing: 1.3px;
    font-weight: 300;
}

.form-title {
    font-size: 2.05rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.form-hint {
    font-size: 0.87rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 2.2rem;
}

.alert-err {
    background: #fef2f2;
    border-right: 3px solid #e24b4a;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-bottom: 1.4rem;
}

.alert-err ul {
    list-style: none;
}

.alert-err li {
    font-size: 0.84rem;
    color: #a32d2d;
    line-height: 1.6;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.input-ico {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    pointer-events: none;
}

.input-ico.clickable {
    pointer-events: auto;
    cursor: pointer;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2eaf2;
    border-radius: 10px;
    padding: 0 46px 0 14px;
    font-family: "Cairo", sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
    background: #f8fbfd;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
    direction: rtl;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: #b0c0cf;
    font-weight: 300;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3.5px rgba(55, 138, 221, 0.13);
}

.aux-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
}

.chk-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.chk-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    cursor: pointer;
}

.chk-label span {
    font-size: 0.84rem;
    color: #556677;
}

.lnk-forgot {
    font-size: 0.84rem;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.lnk-forgot:hover {
    color: var(--navy);
}

.btn-submit {
    width: 100%;
    height: 50px;
    background: var(--deep);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: "Cairo", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background 0.2s,
        transform 0.12s,
        box-shadow 0.2s;
}

.btn-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(55, 138, 221, 0.18) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.btn-submit:hover {
    background: var(--navy);
    box-shadow: 0 8px 28px rgba(4, 44, 83, 0.24);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: scale(0.986);
}

.form-note {
    margin-top: 1.8rem;
    text-align: center;
    font-size: 0.77rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
}

.form-note a {
    color: var(--blue-dk);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 860px) {
    .side-photo {
        display: none;
    }

    .side-form {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .side-form {
        padding: 2.5rem 1.5rem;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-row {
    animation: fadeUp 0.5s 0.05s both;
}

.form-title {
    animation: fadeUp 0.5s 0.1s both;
}

.form-hint {
    animation: fadeUp 0.5s 0.13s both;
}

.field {
    animation: fadeUp 0.5s 0.17s both;
}

.aux-row {
    animation: fadeUp 0.5s 0.25s both;
}

.btn-submit {
    animation: fadeUp 0.5s 0.29s both;
}

.form-note {
    animation: fadeUp 0.5s 0.33s both;
}
