:root { color-scheme: dark; --signin-text: #f8f6fc; --signin-muted: #c2b5d4; --signin-gold: #dbb56c; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #08050e; }
body.crm-signin-page { margin: 0; color: var(--signin-text); background: #08050e; font-family: 'IRANYekanX', Tahoma, sans-serif; font-size: 14px; line-height: 1.8; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #ded2ff; outline-offset: 4px; }
.crm-signin-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #3a1756 0%, #21102f 38%, #08050e 83%); }
.crm-signin-glow { position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%); filter: blur(70px); animation: signin-breathe 10s ease-in-out infinite alternate; }
.crm-signin-glow-top { top: -32vh; width: min(1100px, 130vw); height: 72vh; background: #a55de3; opacity: .2; }
.crm-signin-glow-bottom { bottom: -55vh; width: min(950px, 130vw); height: 95vh; background: #9a47dc; opacity: .15; animation-delay: -5s; }
.crm-signin-grid { position: absolute; inset: 0; opacity: .05; background-image: linear-gradient(135deg, #fff 1px, transparent 1px), linear-gradient(45deg, #fff 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000, transparent 65%); }
.crm-signin-grain { position: absolute; inset: 0; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.crm-signin-main { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 40px 20px; }
.crm-signin-frame { width: min(100%, 396px); perspective: 1500px; animation: signin-enter .7s ease-out both; }
.crm-signin-card { --signin-rotate-x: 0deg; --signin-rotate-y: 0deg; position: relative; padding: 32px; border: 1px solid #ffffff1c; border-radius: 22px; background: linear-gradient(145deg, #ffffff08, #ffffff00 45%), #100a1bd9; box-shadow: 0 32px 100px #0008, inset 0 1px 0 #ffffff0d; backdrop-filter: blur(24px); transform: rotateX(var(--signin-rotate-x)) rotateY(var(--signin-rotate-y)); transition: transform .25s ease-out, border-color .3s, box-shadow .3s; }
.crm-signin-card:focus-within { transform: none; border-color: #ffffff30; }
.crm-signin-card:hover { border-color: #ffffff38; box-shadow: 0 32px 100px #0008, 0 0 28px #bf9af711, inset 0 1px 0 #ffffff12; }
.crm-signin-beams { position: absolute; inset: -1px; overflow: hidden; border-radius: inherit; pointer-events: none; }
.crm-signin-beams i { position: absolute; display: block; opacity: .55; filter: blur(.6px); }
.crm-signin-beams i:nth-child(1), .crm-signin-beams i:nth-child(3) { height: 1px; width: 48%; background: linear-gradient(90deg, transparent, #f2e8ff, transparent); animation: signin-beam-x 5.2s ease-in-out infinite; }
.crm-signin-beams i:nth-child(1) { top: 0; left: -50%; }
.crm-signin-beams i:nth-child(3) { bottom: 0; left: -50%; animation-delay: -2.6s; animation-direction: reverse; }
.crm-signin-beams i:nth-child(2), .crm-signin-beams i:nth-child(4) { width: 1px; height: 48%; background: linear-gradient(180deg, transparent, #f2e8ff, transparent); animation: signin-beam-y 5.2s ease-in-out infinite; }
.crm-signin-beams i:nth-child(2) { right: 0; top: -50%; animation-delay: -1.3s; }
.crm-signin-beams i:nth-child(4) { left: 0; top: -50%; animation-delay: -3.9s; animation-direction: reverse; }
.crm-signin-header { text-align: center; margin-bottom: 27px; }
.crm-signin-logo { display: block; width: 158px; height: auto; margin: 0 auto 20px; filter: drop-shadow(0 4px 12px #d1a75820); }
.crm-signin-eyebrow { display: block; color: var(--signin-gold); font-size: 9px; letter-spacing: .16em; font-family: Arial, sans-serif; }
.crm-signin-header h1 { margin: 10px 0 6px; font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.crm-signin-header p { margin: 0; color: var(--signin-muted); font-size: 13px; line-height: 1.9; }
.crm-signin-form { display: grid; gap: 18px; }
.crm-signin-field { min-width: 0; }
.crm-signin-field > label { display: block; color: #e2d9ee; margin-bottom: 7px; font-size: 12px; font-weight: 500; }
.crm-signin-input-wrap { position: relative; border-radius: 11px; transition: box-shadow .25s; }
.crm-signin-input-wrap:focus-within { box-shadow: 0 0 0 3px #c2a2ed14; }
.crm-signin-input-wrap input { display: block; width: 100%; min-width: 0; height: 48px; border: 1px solid #ffffff14; border-radius: inherit; padding: 9px 43px 9px 14px; color: #fff; background: #ffffff07; font-family: 'IRANYekanX', Tahoma, sans-serif; font-size: 16px; line-height: 1.4; outline: none; transition: border-color .25s, background .25s; }
.crm-signin-input-wrap input::placeholder { color: #a99ab9; font-size: 14px; }
.crm-signin-input-wrap input:focus { border-color: #d0b5f278; background: #ffffff0c; }
.crm-signin-input-wrap input[aria-invalid="true"] { border-color: #f5a7b46e; }
.crm-signin-input-wrap input[type="password"], .crm-signin-input-wrap input[name="password"] { padding-left: 46px; }
.crm-signin-input-wrap input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #22172e inset; caret-color: #fff; }
.crm-signin-input-icon { position: absolute; right: 14px; top: 14px; color: #ac9aba; pointer-events: none; transition: color .25s; }
.crm-signin-input-wrap:focus-within .crm-signin-input-icon { color: #eee5fc; }
.crm-signin-password-toggle { position: absolute; left: 3px; top: 3px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 8px; color: #b9aac9; background: none; transition: color .2s, background .2s; }
.crm-signin-password-toggle:hover { color: #fff; background: #ffffff09; }
.crm-signin-eye-slash { display: none; }
.crm-signin-password-toggle[aria-pressed="true"] .crm-signin-eye-slash { display: block; }
.crm-signin-error, .crm-signin-caps-lock { margin: 8px 0 0; font-size: 12px; line-height: 1.8; }
.crm-signin-error { color: #ffb8c3; }
.crm-signin-caps-lock { color: #eed39e; }
.crm-signin-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 1px; font-size: 11px; color: var(--signin-muted); }
.crm-signin-remember { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.crm-signin-remember input { width: 16px; height: 16px; margin: 0; accent-color: #e1d4f7; cursor: pointer; }
.crm-signin-private { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: #b5a3c8; }
.crm-signin-private svg { width: 14px; height: 14px; color: var(--signin-gold); }
.crm-signin-submit { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; width: 100%; padding: 10px 16px; margin-top: 2px; color: #1a1024; background: #f7f4fb; border: 1px solid #fff; border-radius: 11px; font-size: 14px; font-weight: 600; transition: transform .2s, box-shadow .25s, background .25s; }
.crm-signin-submit:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 0 24px #e4d5ff30; }
.crm-signin-submit:active { transform: scale(.985); }
.crm-signin-submit:disabled { transform: none; opacity: .85; }
.crm-signin-submit-arrow { width: 17px; height: 17px; transition: transform .25s; }
.crm-signin-submit:hover .crm-signin-submit-arrow { transform: translateX(-3px); }
.crm-signin-spinner { width: 17px; height: 17px; border: 2px solid #37234433; border-top-color: #372344; border-radius: 50%; animation: signin-spin .75s linear infinite; }
.crm-signin-submit-status { margin: -10px 0 0; min-height: 0; color: var(--signin-muted); font-size: 11px; text-align: center; }
.crm-signin-submit-status:empty { display: none; }
.crm-signin-help { margin: 25px 0 0; padding-top: 18px; border-top: 1px solid #ffffff0d; color: #b6a7c7; font-size: 11px; text-align: center; line-height: 1.9; }
.crm-signin-footer { display: grid; justify-items: center; gap: 5px; margin-top: 22px; font-size: 10px; color: #b4a1c3; }
.crm-signin-footer a { color: #a696b6; transition: color .2s; }
.crm-signin-footer a:hover { color: #eee3fc; }
@keyframes signin-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes signin-breathe { to { transform: translateX(-50%) scale(1.08); opacity: .28; } }
@keyframes signin-beam-x { 0% { transform: translateX(0); opacity: 0; } 20%, 65% { opacity: .65; } 85%, 100% { transform: translateX(320%); opacity: 0; } }
@keyframes signin-beam-y { 0% { transform: translateY(0); opacity: 0; } 20%, 65% { opacity: .65; } 85%, 100% { transform: translateY(320%); opacity: 0; } }
@keyframes signin-spin { to { transform: rotate(360deg); } }
@media (max-width: 440px) { .crm-signin-main { padding: 28px 18px; } .crm-signin-card { padding: 27px 24px; } .crm-signin-logo { width: 148px; } .crm-signin-header h1 { font-size: 24px; } }
@media (max-width: 350px) { .crm-signin-card { padding: 25px 20px; } .crm-signin-options { gap: 6px; font-size: 10px; } .crm-signin-header p { font-size: 12px; } .crm-signin-eyebrow { font-size: 8px; } }
@media (max-height: 620px) and (min-width: 600px) { .crm-signin-main { padding-block: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .crm-signin-card { transform: none !important; } }
