
#main.auth-page {
    --primary: #6652cb;
    --primary-dark: #503ba9;
    --primary-light: #8c7be5;
    --gold: #d8b56b;
    --green: #26b58b;
    --dark: #111318;
    --text: #252437;
    --muted: #89889a;
    --border: #ecebf2;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 45px 24px;
    overflow: hidden;
    background: #f4f3f9;
    font-family: Anjoman, sans-serif;
    direction: rtl;
}
#main.auth-page button, #main.auth-page input { font-family: inherit; }
#main.auth-page button { cursor: pointer; }
.auth-background { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.auth-orb { position: absolute; display: block; border-radius: 50%; filter: blur(2px); }
.auth-orb-one { top: -240px; right: -180px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(102,82,203,.13), transparent 70%); }
.auth-orb-two { bottom: -300px; left: -180px; width: 650px; height: 650px; background: radial-gradient(circle, rgba(216,181,107,.12), transparent 70%); }
.auth-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(102,82,203,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(102,82,203,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.auth-container { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: auto; }
.auth-box { display: grid; grid-template-columns: 1fr 1fr; direction: rtl; width: 100%; min-height: 680px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 27px; background: #fff; box-shadow: 0 35px 90px rgba(39,32,82,.11), 0 5px 20px rgba(39,32,82,.04); }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 38px 42px 32px; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 15% 70%, rgba(102,82,203,.26), transparent 48%), radial-gradient(ellipse at 85% 15%, rgba(216,181,107,.12), transparent 35%), #111318; }
.auth-brand::before { position: absolute; top: -180px; right: -180px; width: 450px; height: 450px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.auth-brand::after { position: absolute; top: -120px; right: -120px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; content: ""; }
.brand-top, .brand-bottom, .brand-content { position: relative; z-index: 2; }
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.brand-logo { display: flex; align-items: center;}
.brand-logo img { height: 31px; width: auto; display: block; }
.brand-version { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; color: #c7c5d0; background: rgba(255,255,255,.045); font-size: 13px; }
.brand-version > span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(38,181,139,.7); }
.brand-content { margin-top: 55px; }
.brand-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--gold); font-size: 13px; font-weight: 600; }
.eyebrow-line { width: 24px; height: 1px; background: var(--gold); }
.brand-content h1 { margin: 0; color: #fff; font-size: clamp(27px, 3vw, 36px); font-weight: 800; line-height: 1.8; letter-spacing: -.8px; }
.brand-content h1 span { color: #c4b8ff; }
.brand-content > p { max-width: 410px; margin: 17px 0 0; color: #aaa9b5; font-size: 13px; line-height: 2.3; }
.brand-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 235px; margin-top: 5px; perspective: 900px; }
.visual-glow { position: absolute; width: 270px; height: 190px; border-radius: 50%; background: rgba(102,82,203,.23); filter: blur(65px); }
.resume-floating-card { position: relative; z-index: 1; width: 235px; height: 220px; padding: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: 12px; background: linear-gradient(145deg, #fff, #f2f0fa); box-shadow: 0 25px 55px rgba(0,0,0,.35), 0 0 35px rgba(137,116,235,.12); transform: rotateY(-13deg) rotateX(5deg) rotateZ(-3deg); animation: resumeFloat 6s ease-in-out infinite; }
@keyframes resumeFloat {
    0%, 100% { transform: translateY(0) rotateY(-13deg) rotateX(5deg) rotateZ(-3deg); }
    50% { transform: translateY(-8px) rotateY(-10deg) rotateX(4deg) rotateZ(-2deg); }
}
.resume-card-top { display: flex; align-items: center; gap: 8px; }
.resume-card-logo { display: flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 6px; color: white; background: var(--primary); font-size: 11px; font-weight: 800; }
.resume-card-top > span { color: #88839b; font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.resume-card-top > i { width: 5px; height: 5px; margin-right: auto; border-radius: 50%; background: var(--green); }
.resume-card-profile { display: flex; align-items: center; gap: 12px; margin-top: 17px; }
.resume-avatar { position: relative; width: 43px; height: 43px; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg, #ded8ff, #b7a9f2); }
.resume-avatar span:first-child { position: absolute; top: 7px; left: 15px; width: 13px; height: 13px; border-radius: 50%; background: #7663c6; }
.resume-avatar span:last-child { position: absolute; bottom: -5px; left: 7px; width: 29px; height: 21px; border-radius: 50% 50% 0 0; background: #7663c6; }
.resume-profile-lines { display: flex; flex-direction: column; gap: 6px; }
.resume-profile-lines span, .resume-card-section > span, .resume-card-footer span { display: block; height: 5px; border-radius: 5px; background: #dedce8; }
.resume-profile-lines span:first-child { width: 83px; height: 7px; background: #77718b; }
.resume-profile-lines span:nth-child(2) { width: 62px; }
.resume-profile-lines span:nth-child(3) { width: 45px; }
.resume-card-divider { height: 1px; margin: 14px 0; background: #e7e4ee; }
.resume-card-section { display: flex; flex-direction: column; gap: 6px; }
.resume-card-section .resume-section-title { width: 65px; height: 6px; margin-bottom: 2px; background: #6652cb; }
.resume-card-section > span:nth-child(2) { width: 100%; }
.resume-card-section > span:nth-child(3) { width: 85%; }
.resume-card-section > span:nth-child(4) { width: 65%; }
.resume-card-section-two { margin-top: 13px; }
.resume-card-section-two > span:nth-child(2) { width: 92%; }
.resume-card-section-two > span:nth-child(3) { width: 75%; }
.resume-card-footer { display: flex; gap: 6px; margin-top: 12px; }
.resume-card-footer span { width: 28px; height: 5px; background: #d6d0ef; }
.visual-floating-badge { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(36,35,48,.9); box-shadow: 0 12px 30px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.visual-floating-badge strong, .visual-floating-badge small { display: block; }
.visual-floating-badge strong { color: #fff; font-size: 10px; font-weight: 700; }
.visual-floating-badge small { margin-top: 3px; color: #a6a3b2; font-size: 8px; }
.badge-ai { top: 20px; right: 0; }
.badge-success { bottom: 20px; left: 0; }
.badge-ai-icon, .badge-success-icon { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 9px; font-size: 16px; }
.badge-ai-icon { color: #d9ccff; background: rgba(102,82,203,.28); }
.badge-success-icon { color: #7ee3bd; background: rgba(38,181,139,.15); }
.brand-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #92909d; font-size: 13px; }
.brand-bottom-decoration { display: flex; gap: 5px; }
.brand-bottom-decoration span { width: 5px; height: 5px; border-radius: 50%; background: #6652cb; }
.brand-bottom-decoration span:nth-child(2) { opacity: .55; }
.brand-bottom-decoration span:nth-child(3) { opacity: .25; }
.auth-form { display: flex; justify-content: center; min-width: 0; padding: 38px 55px; background: #fff; }
.form-content { width: 100%; max-width: 365px; }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.form-top-label { display: flex; align-items: center; gap: 7px; color: #9997a7; font-size: 10px; }
.form-home { display: flex; align-items: center; gap: 4px; color: #77718d; font-size: 13px; text-decoration: none; transition: color .2s ease; margin-right: auto; margin-top: 10px; }
.form-home:hover { color: var(--primary); }
.form-home svg { width: 16px; height: 16px; }
.form-title { margin-top: 60px; margin-bottom: 35px; }
.form-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 21px; border: 1px solid #e9e5fa; border-radius: 14px; color: var(--primary); background: linear-gradient(145deg, #f6f3ff, #eeeaff); box-shadow: 0 5px 15px rgba(102,82,203,.07); }
.form-icon svg { width: 25px; height: 25px; }
.form-title h2 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.5px; }
.form-title p { margin: 11px 0 0; color: #77718d; font-size: 13px; line-height: 2; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.input-box { position: relative; display: flex; align-items: center; width: 100%; height: 57px; border: 1px solid #e8e6ef; border-radius: 12px; background: #faf9fc; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.input-box:focus-within { border-color: #8c7be5; background: #fff; box-shadow: 0 0 0 4px rgba(102,82,203,.09); }
.input-icon { display: flex; align-items: center; justify-content: center; width: 48px; flex: 0 0 48px; color: #a29eaf; }
.input-icon svg { width: 20px; height: 20px; }
.input-box input { width: 100%; height: 100%; min-width: 0; padding: 0px 4px 0px 10px; border: 0; outline: 0; background: transparent; direction: ltr; text-align: left; font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.input-box input::placeholder { color: #c0bdc9; font-size: 13px; font-weight: 400; }
.error-message, .form-error { min-height: 0; margin-top: 7px; color: #d94b62; font-size: 13px; line-height: 1.7; }
.submit-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 55px; margin-top: 30px; padding: 0 18px; overflow: hidden; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(115deg, #7460dc, #5842b8); box-shadow: 0 9px 22px rgba(102,82,203,.22); font-size: 13px; font-weight: 700; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.submit-btn::before { position: absolute; top: 0; right: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.17), transparent); content: ""; transform: skewX(-20deg); transition: right .6s ease; }
.submit-btn:hover { box-shadow: 0 13px 27px rgba(102,82,203,.29); filter: saturate(1.1); }
.submit-btn:hover::before { right: 140%; }
.submit-btn:active { transform: translateY(0) scale(.99); }
.submit-btn > span, .submit-btn > svg { position: relative; z-index: 1; }
.submit-btn > svg { width: 18px; height: 18px; margin-right: auto; }
.loading { display: none; align-items: center; justify-content: center; gap: 9px; }
.loading-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: authSpin .7s linear infinite; }
@keyframes authSpin {
    to { transform: rotate(360deg); }
}
.otp-box { display: none; }
.otp-box.show { display: block; animation: otpShow .35s ease both; }
@keyframes otpShow {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.otp-title { font-size: 25px; font-weight: 800; letter-spacing: -.5px; }
.otp-description { margin-top: 12px; color: #77718d; font-size: 13px; line-height: 2.2; }
.otp-description strong { color: var(--primary); font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.otp-input-wrapper { margin-top: 30px; }
.otp-input-wrapper input { width: 100%; height: 62px; padding: 0 15px; border: 1px solid #e8e6ef; border-radius: 12px; outline: none; color: var(--primary); background: #faf9fc; text-align: center; direction: ltr; font-size: 23px; font-weight: 800; letter-spacing: 13px; transition: .25s ease; }
.otp-input-wrapper input:focus { border-color: #8c7be5; background: #fff; box-shadow: 0 0 0 4px rgba(102,82,203,.09); }
.otp-input-wrapper input::placeholder { color: #d6d2e2; }
.otp-resend { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 23px; }
.otp-timer { display: flex; align-items: center; gap: 7px; color: #77718d; font-size: 13px; }
.otp-timer #otpTimer { color: var(--primary); font-size: 13px; font-weight: 800; direction: ltr; }
.otp-resend button { padding: 7px 10px; border: 0; border-radius: 7px; color: var(--primary); background: #f2efff; font-size: 13px; font-weight: 700; transition: .2s ease; }
.otp-resend button:not(:disabled):hover { color: #fff; background: var(--primary); }
.otp-resend button:disabled { opacity: .45; cursor: not-allowed; }
.change-mobile { display: flex; align-items: center; gap: 7px; margin-top: 23px; padding: 0; border: 0; color: #77718d; background: transparent; font-size: 13px; transition: color .2s ease; }
.change-mobile:hover { color: var(--primary); }
.form-footer { margin-top: 65px; padding-top: 19px; border-top: 1px solid #f0eef4; color: #77718d; text-align: center; font-size: 13px; line-height: 2; }
@media (max-width: 1050px) {
    .auth-container { max-width: 900px; }
    .auth-brand { padding: 32px; }
    .auth-form { padding: 35px 38px; }
    .brand-content h1 { font-size: 29px; }
    .brand-visual { margin-top: 15px; }
}
@media (max-width: 760px) {
    #main.auth-page { padding: 20px 14px; }
    .auth-box { grid-template-columns: 1fr; max-width: 480px; min-height: 0; margin: auto; border-radius: 21px; }
    .auth-brand { min-height: 0; padding: 24px 25px 21px; }
    .brand-top { margin-bottom: 32px; }
    .brand-content { margin-top: 0; }
    .brand-eyebrow { margin-bottom: 12px; font-size: 10px; }
    .brand-content h1 { font-size: 24px; line-height: 1.75; }
    .brand-content > p { max-width: 100%; margin-top: 10px; font-size: 10px; line-height: 2; }
    .brand-visual { height: 170px; margin-top: 5px; }
    .resume-floating-card { width: 190px; height: 165px; padding: 11px; transform: scale(.9) rotateY(-10deg) rotateZ(-3deg); }
    .resume-card-profile { margin-top: 10px; }
    .resume-card-divider { margin: 9px 0; }
    .resume-card-section-two { margin-top: 8px; }
    .resume-card-footer { margin-top: 8px; }
    .visual-floating-badge { padding: 8px 10px; }
    .badge-ai { top: 9px; right: -5px; }
    .badge-success { bottom: 7px; left: -5px; }
    .brand-bottom { padding-top: 13px; font-size: 9px; }
    .auth-form { padding: 30px 25px 25px; }
    .form-title { margin-top: 36px; margin-bottom: 27px; }
    .form-title h2 { font-size: 23px; }
    .form-footer { margin-top: 38px; }
}
@media (max-width: 380px) {
    #main.auth-page { padding: 12px 9px; }
    .auth-brand { padding: 20px 19px; }
    .brand-logo { font-size: 16px; }
    .brand-version { font-size: 9px; }
    .auth-form { padding: 25px 19px; }
    .form-top-label, .form-home { font-size: 9px; }
    .brand-content h1 { font-size: 21px; }
    .otp-resend { align-items: flex-start; flex-direction: column; }
}
