html,
body {
    min-height: 100%;
}

body.ra-auth-clean {
    margin: 0;
    min-height: 100vh;
    font-family: "Times New Roman", Times, serif;
    color: #102037;
    background:
        radial-gradient(circle at 12% 12%, rgba(36, 187, 204, .22), transparent 28%),
        radial-gradient(circle at 88% 88%, rgba(20, 88, 165, .18), transparent 28%),
        linear-gradient(135deg, #071426 0%, #0b2342 52%, #eef6ff 52%, #f8fbff 100%);
}

body.ra-auth-clean.is-rtl {
    background:
        radial-gradient(circle at 88% 12%, rgba(36, 187, 204, .22), transparent 28%),
        radial-gradient(circle at 12% 88%, rgba(20, 88, 165, .18), transparent 28%),
        linear-gradient(225deg, #071426 0%, #0b2342 52%, #eef6ff 52%, #f8fbff 100%);
}

.auth-page {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

body.is-ltr .auth-page {
    flex-direction: row;
}

body.is-rtl .auth-page {
    flex-direction: row;
}

.auth-panel {
    width: min(100%, 520px);
    min-height: 560px;
    box-sizing: border-box;
    border-radius: 34px;
    padding: 34px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 28px 80px rgba(10, 35, 70, .20);
    backdrop-filter: blur(14px);
}

body.is-ltr .auth-panel {
    direction: ltr;
}

body.is-rtl .auth-panel {
    direction: rtl;
}

.auth-hero {
    flex: 1;
    min-height: 560px;
    box-sizing: border-box;
    border-radius: 34px;
    padding: 54px;
    background:
        radial-gradient(circle at 18% 16%, rgba(36, 187, 204, .28), transparent 28%),
        linear-gradient(145deg, rgba(31, 58, 91, .94), rgba(12, 32, 59, .92));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
    color: #fff;
    display: flex;
    align-items: center;
}

body.is-rtl .auth-hero {
    background:
        radial-gradient(circle at 82% 16%, rgba(36, 187, 204, .28), transparent 28%),
        linear-gradient(145deg, rgba(31, 58, 91, .94), rgba(12, 32, 59, .92));
    justify-content: flex-end;
    text-align: right;
}

body.is-ltr .auth-hero {
    justify-content: flex-start;
    text-align: left;
}

.auth-hero-inner {
    width: min(100%, 460px);
    display: flex;
    flex-direction: column;
}

body.is-rtl .auth-hero-inner {
    align-items: flex-end;
}

body.is-ltr .auth-hero-inner {
    align-items: flex-start;
}

.auth-logo {
    width: 260px;
    max-width: 86%;
    height: auto;
    max-height: 76px;
    object-fit: contain;
    margin-bottom: 30px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 15px;
}

.auth-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    color: #fff;
}

.auth-hero p {
    margin: 0 0 34px;
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255,255,255,.92);
}

.auth-features {
    width: min(100%, 430px);
    display: grid;
    gap: 12px;
}

.auth-feature {
    min-height: 48px;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

body.is-rtl .auth-feature {
    direction: rtl;
    justify-content: flex-start;
}

body.is-ltr .auth-feature {
    direction: ltr;
    justify-content: flex-start;
}

.auth-lang-row {
    display: flex;
    margin-bottom: 18px;
}

body.is-ltr .auth-lang-row {
    justify-content: flex-end;
}

body.is-rtl .auth-lang-row {
    justify-content: flex-start;
}

.auth-lang {
    text-decoration: none;
    color: #0d5da4;
    background: #edf7ff;
    border: 1px solid #d5ecff;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 15px;
}

.auth-card-logo {
    display: block;
    width: 190px;
    max-width: 72%;
    max-height: 62px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.auth-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f9ff, #e3faf4);
    border: 1px solid rgba(33, 180, 198, .15);
    font-size: 28px;
}

.auth-panel h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 34px;
}

.auth-panel p {
    margin: 0 0 24px;
    text-align: center;
    color: #607087;
    line-height: 1.7;
    font-size: 17px;
}

.auth-alert,
.auth-success,
.auth-note {
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.6;
}

.auth-alert {
    color: #8a351f;
    background: #fff1ea;
    border: 1px solid #ffd7c7;
}

.auth-success {
    color: #126b4b;
    background: #eafaf3;
    border: 1px solid #c5f0dc;
}

.auth-note {
    margin: 18px 0 0;
    color: #637083;
    background: #f6f9fd;
    border: 1px dashed #d9e6f4;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: #20304a;
}

body.is-rtl .auth-form label {
    text-align: right;
}

body.is-ltr .auth-form label {
    text-align: left;
}

.auth-form input {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    border-radius: 17px;
    border: 1px solid #d9e6f4;
    background: #f8fbff;
    padding: 0 16px;
    outline: none;
    font-size: 17px;
    font-family: "Times New Roman", Times, serif;
}

.auth-form input:focus {
    border-color: #22b6c6;
    box-shadow: 0 0 0 4px rgba(34, 182, 198, .13);
    background: #fff;
}

.auth-links {
    display: flex;
    align-items: center;
}

body.is-ltr .auth-links {
    justify-content: flex-start;
}

body.is-rtl .auth-links {
    justify-content: flex-end;
}

.auth-links.is-center {
    justify-content: center;
    margin-top: 18px;
}

.auth-links a {
    color: #0e5ea8;
    font-weight: 700;
    text-decoration: none;
}

.auth-submit {
    height: 54px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    font-family: "Times New Roman", Times, serif;
    background: linear-gradient(135deg, #0e4f92, #1bb8c8);
    box-shadow: 0 16px 30px rgba(22, 129, 173, .28);
}

@media (max-width: 1100px) {
    .auth-page {
        flex-direction: column !important;
        padding: 24px;
    }

    .auth-panel {
        order: 1;
        width: min(100%, 560px);
        min-height: auto;
    }

    .auth-hero {
        order: 2;
        width: min(100%, 760px);
        min-height: auto;
        justify-content: center !important;
        text-align: center !important;
        padding: 34px;
    }

    .auth-hero-inner {
        align-items: center !important;
    }

    .auth-feature {
        justify-content: center !important;
        text-align: center;
    }
}

@media (max-width: 560px) {
    body.ra-auth-clean,
    body.ra-auth-clean.is-rtl {
        background: linear-gradient(160deg, #071426 0%, #0b2342 42%, #eef6ff 42%, #f8fbff 100%);
    }

    .auth-page {
        min-height: 100vh;
        padding: 14px;
    }

    .auth-hero {
        display: none;
    }

    .auth-panel {
        width: 100%;
        border-radius: 26px;
        padding: 22px;
    }

    .auth-panel h2 {
        font-size: 28px;
    }

    .auth-panel p {
        font-size: 15px;
    }

    .auth-card-logo {
        width: 160px;
    }

    .auth-form input,
    .auth-submit {
        height: 50px;
    }
}

/* Password visibility toggle */
.auth-password-wrap {
    position: relative;
    width: 100%;
}

.auth-password-wrap input {
    padding-inline-end: 52px;
}

body.is-rtl .auth-password-wrap input {
    padding-inline-end: 16px;
    padding-inline-start: 52px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: #edf7ff;
    color: #0d5da4;
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
}

body.is-rtl .auth-password-toggle {
    inset-inline-end: auto;
    inset-inline-start: 12px;
}

.auth-password-toggle:hover {
    background: #dff3ff;
}
