:root {
    --bg-primary: #0b1a2a;
    --bg-secondary: #0f2740;
    --card-bg: rgba(14, 28, 47, 0.62);
    --card-bg-soft: rgba(12, 24, 41, 0.5);
    --card-border: rgba(115, 184, 255, 0.24);
    --card-border-soft: rgba(97, 166, 248, 0.17);
    --text-main: #f3f8ff;
    --text-muted: #aec6e9;
    --accent: #00aeef;
    --accent-2: #3b82f6;
    --button-shadow: 0 16px 34px rgba(0, 174, 239, 0.34);
    --surface-shadow: 0 22px 52px rgba(3, 10, 18, 0.5);
    --success: #6ce0aa;
    --error: #ff9ca8;
}

html[data-theme="sunset"] {
    --bg-primary: #edf4ff;
    --bg-secondary: #e7f0ff;
    --card-bg: rgba(250, 253, 255, 0.86);
    --card-bg-soft: rgba(242, 248, 255, 0.78);
    --card-border: rgba(98, 147, 210, 0.34);
    --card-border-soft: rgba(114, 159, 218, 0.3);
    --text-main: #163250;
    --text-muted: #4f6a8d;
    --accent: #2f7ef2;
    --accent-2: #5ca2ff;
    --button-shadow: 0 14px 30px rgba(63, 131, 224, 0.28);
    --surface-shadow: 0 18px 36px rgba(95, 136, 193, 0.26);
    --success: #2f9b67;
    --error: #d44f6a;
}

html[data-theme="sunset"] body {
    color: var(--text-main);
    background:
        radial-gradient(1120px 560px at 12% -10%, rgba(126, 186, 255, 0.38), transparent 70%),
        radial-gradient(860px 500px at 92% -6%, rgba(122, 207, 255, 0.24), transparent 72%),
        linear-gradient(160deg, #f8fbff 0%, #edf5ff 40%, #e4eeff 100%);
}

html[data-theme="sunset"] .glass-panel,
html[data-theme="sunset"] .hero-panel,
html[data-theme="sunset"] .login-card,
html[data-theme="sunset"] .preview-widget,
html[data-theme="sunset"] .trial-btn {
    border-color: var(--card-border-soft);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 255, 0.76));
    box-shadow: var(--surface-shadow);
}

html[data-theme="sunset"] .hero-subtitle,
html[data-theme="sunset"] .subtitle,
html[data-theme="sunset"] .bottom-text,
html[data-theme="sunset"] .trial-subtitle,
html[data-theme="sunset"] .widget-copy,
html[data-theme="sunset"] .google-hint,
html[data-theme="sunset"] .google-divider span {
    color: var(--text-muted);
}

html[data-theme="sunset"] .google-divider::before,
html[data-theme="sunset"] .google-divider::after {
    background: rgba(118, 160, 210, 0.32);
}

html[data-theme="sunset"] .google-signin-slot {
    border-color: rgba(122, 168, 218, 0.36);
    background: rgba(255, 255, 255, 0.84);
}

html[data-theme="sunset"] .form-input {
    border-color: rgba(122, 165, 218, 0.45);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
}

html[data-theme="sunset"] .form-input::placeholder {
    color: rgba(95, 126, 165, 0.72);
}

html[data-theme="sunset"] .language-switcher {
    border-color: rgba(120, 166, 224, 0.28);
    background: rgba(255, 255, 255, 0.74);
}

html[data-theme="sunset"] .blob {
    opacity: 0.74;
    filter: blur(34px);
}

html[data-theme="sunset"] .blob-a {
    background: radial-gradient(circle at 30% 30%, rgba(84, 151, 236, 0.5), rgba(84, 151, 236, 0.04) 75%);
}

html[data-theme="sunset"] .blob-b {
    background: radial-gradient(circle at 50% 50%, rgba(58, 166, 220, 0.4), rgba(58, 166, 220, 0.03) 74%);
}

html[data-theme="sunset"] .blob-c {
    background: radial-gradient(circle at 65% 50%, rgba(118, 132, 232, 0.36), rgba(118, 132, 232, 0.03) 74%);
}

html[data-theme="sunset"] .curve {
    border-color: rgba(95, 140, 197, 0.24);
}

html[data-theme="sunset"] .geo {
    opacity: 0.5;
}

html[data-theme="sunset"] .geo-ring {
    border-color: rgba(109, 160, 222, 0.36);
    box-shadow: 0 0 16px rgba(73, 137, 214, 0.22);
}

html[data-theme="sunset"] .geo-square {
    border-color: rgba(108, 159, 219, 0.34);
    box-shadow: 0 0 12px rgba(87, 145, 220, 0.2);
}

html[data-theme="sunset"] .geo-triangle {
    border-bottom-color: rgba(99, 156, 219, 0.3);
    filter: drop-shadow(0 0 8px rgba(87, 145, 220, 0.2));
}

html[data-theme="sunset"] .geo-line {
    background: linear-gradient(90deg, rgba(58, 130, 233, 0.02), rgba(95, 155, 225, 0.54), rgba(58, 130, 233, 0.02));
    box-shadow: 0 0 10px rgba(94, 154, 225, 0.22);
}

html[data-theme="sunset"] .hero-kicker {
    color: #1f4874;
    border-color: rgba(100, 151, 214, 0.4);
    background: rgba(105, 154, 217, 0.14);
}

html[data-theme="sunset"] .feature-chip {
    color: #2a4d76;
    border-color: rgba(105, 152, 211, 0.3);
    background: rgba(246, 251, 255, 0.82);
}

html[data-theme="sunset"] .widget-title,
html[data-theme="sunset"] .form-label,
html[data-theme="sunset"] .remember,
html[data-theme="sunset"] .toggle-password,
html[data-theme="sunset"] .trial-title {
    color: #1e3d61;
}

html[data-theme="sunset"] .toggle-password {
    background: rgba(96, 138, 198, 0.18);
}

html[data-theme="sunset"] .toggle-password:hover {
    background: rgba(96, 138, 198, 0.3);
}

html[data-theme="sunset"] .widget-sheet {
    border-color: rgba(119, 160, 213, 0.34);
    background: rgba(255, 255, 255, 0.95);
}

html[data-theme="sunset"] .sheet-line {
    background: linear-gradient(90deg, rgba(86, 129, 181, 0.58), rgba(86, 129, 181, 0.22));
}

html[data-theme="sunset"] .sheet-grid span {
    border-color: rgba(134, 165, 199, 0.58);
    background: rgba(250, 253, 255, 0.9);
}

html[data-theme="sunset"] .link {
    color: #2f6fb3;
}

html[data-theme="sunset"] .link:hover {
    color: #1f4f84;
}

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

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

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1200px 620px at 12% -10%, rgba(43, 111, 199, 0.3), transparent 70%),
        radial-gradient(900px 520px at 92% -6%, rgba(0, 174, 239, 0.2), transparent 72%),
        linear-gradient(160deg, #081524 0%, var(--bg-primary) 36%, #0f2238 100%);
    overflow-x: hidden;
    position: relative;
}

.background-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.58;
}

.blob-a {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.52), rgba(59, 130, 246, 0.02) 75%);
    left: -140px;
    top: -90px;
}

.blob-b {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 174, 239, 0.4), rgba(42, 66, 155, 0.04) 74%);
    right: -180px;
    top: 90px;
    animation: blobDrift 14s ease-in-out infinite;
}

.blob-c {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle at 65% 50%, rgba(73, 91, 214, 0.36), rgba(14, 35, 64, 0.02) 74%);
    left: 30%;
    bottom: -220px;
    animation: blobDrift 16s ease-in-out infinite reverse;
}

.curve {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(143, 193, 255, 0.16);
}

.curve-a {
    width: 760px;
    height: 760px;
    left: -360px;
    top: 90px;
    transform: rotate(-19deg);
}

.curve-b {
    width: 900px;
    height: 560px;
    right: -420px;
    top: 260px;
    transform: rotate(8deg);
}

.geo {
    position: absolute;
    pointer-events: none;
    opacity: 0.34;
}

.geo-ring {
    border-radius: 50%;
    border: 1px solid rgba(135, 201, 255, 0.28);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.16);
}

.geo-ring-a {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 58%;
    --geo-rot: 0deg;
    animation: geoFloat 12s ease-in-out infinite;
}

.geo-ring-b {
    width: 78px;
    height: 78px;
    bottom: 17%;
    left: 14%;
    --geo-rot: 0deg;
    animation: geoPulse 9s ease-in-out infinite;
}

.geo-square {
    border: 1px solid rgba(126, 189, 255, 0.3);
    border-radius: 14px;
    box-shadow: 0 0 14px rgba(0, 174, 239, 0.12);
}

.geo-square-a {
    width: 72px;
    height: 72px;
    top: 30%;
    right: 33%;
    transform: rotate(16deg);
    animation: geoSpinA 13s linear infinite;
}

.geo-square-b {
    width: 46px;
    height: 46px;
    bottom: 28%;
    right: 9%;
    --geo-rot: -22deg;
    transform: rotate(var(--geo-rot));
    animation: geoFloat 11s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 30px solid rgba(124, 196, 255, 0.2);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.2));
}

.geo-triangle-a {
    top: 18%;
    right: 15%;
    transform: rotate(8deg);
    animation: geoSpinB 14s linear infinite;
}

.geo-triangle-b {
    bottom: 26%;
    left: 47%;
    transform: rotate(-14deg);
    animation: geoPulse 10s ease-in-out infinite;
}

.geo-line {
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 174, 239, 0.02), rgba(125, 206, 255, 0.5), rgba(0, 174, 239, 0.02));
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.2);
}

.geo-line-a {
    width: 180px;
    top: 22%;
    left: 19%;
    --geo-rot: 26deg;
    transform: rotate(var(--geo-rot));
    animation: geoFloat 10s ease-in-out infinite;
}

.geo-line-b {
    width: 140px;
    bottom: 20%;
    right: 30%;
    --geo-rot: -20deg;
    transform: rotate(var(--geo-rot));
    animation: geoFloat 12s ease-in-out infinite reverse;
}

.login-shell {
    width: min(1180px, 92vw);
    margin: 0 auto;
    padding: 108px 0 34px;
}

.glass-panel {
    border-radius: 20px;
    border: 1px solid var(--card-border-soft);
    background: linear-gradient(160deg, rgba(12, 26, 44, 0.72), rgba(11, 22, 38, 0.52));
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(2, 8, 16, 0.36);
}

.login-topbar {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent), #4f7cff);
    color: #041326;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(0, 174, 239, 0.36);
}

.brand-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.24s ease;
}

.back-link:hover {
    color: var(--text-main);
    border-color: var(--card-border-soft);
    background: rgba(30, 67, 112, 0.35);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(130, 196, 255, 0.2);
    background: rgba(12, 29, 49, 0.64);
}

.lang-btn {
    border: none;
    min-width: 50px;
    height: 34px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: 0.24s ease;
}

.lang-btn.active {
    color: #051120;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.32);
}

.login-layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(20px, 4vw, 46px);
}

.hero-panel {
    padding: clamp(26px, 3vw, 38px);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 167, 255, 0.2), rgba(6, 20, 34, 0) 70%);
    top: -140px;
    right: -70px;
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(95, 166, 250, 0.35);
    background: rgba(26, 52, 85, 0.4);
    color: #d4e7ff;
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-title {
    margin-top: 16px;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.03;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin-top: 14px;
    max-width: 560px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.feature-list {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-chip {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(109, 172, 248, 0.24);
    background: rgba(17, 39, 65, 0.46);
    color: #d2e7ff;
    font-size: 0.79rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.preview-widget {
    margin-top: 30px;
    width: min(340px, 100%);
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: linear-gradient(170deg, var(--card-bg), var(--card-bg-soft));
    backdrop-filter: blur(18px);
    box-shadow: var(--surface-shadow);
    animation: floatCard 8.4s ease-in-out infinite;
}

.widget-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e8f4ff;
}

.widget-sheet {
    margin-top: 10px;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(124, 189, 255, 0.28);
    background: rgba(232, 242, 255, 0.94);
}

.sheet-line {
    height: 9px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(70, 118, 176, 0.55), rgba(70, 118, 176, 0.24));
    margin-bottom: 6px;
}

.sheet-line.short {
    width: 64%;
}

.sheet-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.sheet-grid span {
    min-height: 28px;
    border-radius: 7px;
    border: 1px solid rgba(147, 174, 204, 0.52);
    background: rgba(247, 252, 255, 0.84);
}

.widget-copy {
    margin-top: 10px;
    color: #9cc0e7;
    font-size: 0.73rem;
    font-weight: 600;
}

.form-panel {
    display: flex;
}

.login-card {
    width: 100%;
    padding: clamp(22px, 3.2vw, 34px);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: linear-gradient(170deg, rgba(15, 31, 52, 0.74), rgba(12, 24, 40, 0.65));
    backdrop-filter: blur(18px);
    box-shadow: var(--surface-shadow);
}

.login-card h2 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    letter-spacing: -0.02em;
}

.subtitle {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.6;
}

.form-group {
    margin-top: 18px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #d4e7ff;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a7c5e7;
    font-size: 0.85rem;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(127, 179, 241, 0.35);
    background: rgba(14, 33, 54, 0.62);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.97rem;
    outline: none;
    padding: 0 44px 0 36px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
    color: rgba(175, 199, 228, 0.62);
}

.form-input:focus {
    border-color: rgba(131, 205, 255, 0.88);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.24), 0 0 24px rgba(0, 174, 239, 0.16);
    background: rgba(16, 38, 62, 0.78);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 34px;
    border: none;
    border-radius: 9px;
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbe1ff;
    background: rgba(52, 93, 146, 0.35);
    cursor: pointer;
    transition: 0.2s ease;
}

.toggle-password:hover {
    background: rgba(65, 116, 178, 0.54);
}

.form-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c3d8f3;
    font-size: 0.84rem;
    cursor: pointer;
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--accent-2);
}

.link {
    color: #8fc7ff;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
}

.link:hover {
    color: #cde8ff;
}

.submit-btn {
    margin-top: 18px;
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #041326;
    cursor: pointer;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    box-shadow: var(--button-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.32) 45%, transparent 72%);
    transform: translateX(-140%);
    transition: transform 0.65s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(0, 174, 239, 0.44);
}

.submit-btn:hover::before {
    transform: translateX(140%);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.82;
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 174, 239, 0.2);
}

.google-login-wrap {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.google-divider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.google-divider::before,
.google-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(118, 176, 236, 0.28);
}

.google-divider span {
    color: #96b8dd;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.google-signin-slot {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(107, 170, 236, 0.28);
    background: rgba(14, 33, 54, 0.46);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.google-signin-slot>div {
    width: 100% !important;
    display: flex;
    justify-content: center;
}

.google-fallback-btn {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(107, 170, 236, 0.34);
    background: rgba(14, 33, 54, 0.62);
    color: #d7ebff;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.google-fallback-btn:hover {
    background: rgba(19, 42, 68, 0.82);
    border-color: rgba(136, 193, 255, 0.52);
}

.google-fallback-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.google-hint {
    font-size: 0.75rem;
    color: #8fb4dc;
    line-height: 1.35;
    text-align: center;
}

.google-hint.error {
    color: #ff9ca8;
    cursor: pointer;
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.google-hint.success {
    color: #6ce0aa;
}

.google-login-wrap.is-disabled .google-signin-slot {
    opacity: 0.7;
}

.google-login-wrap.is-disabled .google-fallback-btn {
    opacity: 0.72;
}

.trial-btn {
    margin-top: 12px;
    width: 100%;
    min-height: 60px;
    border-radius: 18px;
    border: 1px solid rgba(111, 183, 255, 0.28);
    background: linear-gradient(160deg, rgba(15, 39, 66, 0.66), rgba(17, 30, 54, 0.6));
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.trial-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(127, 201, 255, 0.48);
    box-shadow: 0 16px 32px rgba(0, 174, 239, 0.18);
}

.trial-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trial-title {
    font-size: 0.92rem;
    font-weight: 700;
}

.trial-subtitle {
    font-size: 0.75rem;
    color: #9cc0e7;
}

.trial-badge {
    min-width: 68px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: #cde8ff;
    border: 1px solid rgba(111, 183, 255, 0.35);
    background: rgba(15, 44, 74, 0.72);
}

.trial-arrow {
    font-size: 1.1rem;
    color: #88c8ff;
    transition: transform 0.2s ease;
}

.trial-btn:hover .trial-arrow {
    transform: translateX(4px);
}

.message {
    min-height: 22px;
    margin-top: 12px;
    font-size: 0.86rem;
    font-weight: 600;
}

.message.success {
    color: var(--success);
}

.message.error {
    color: var(--error);
}

.bottom-text {
    margin-top: 18px;
    text-align: center;
    font-size: 0.86rem;
    color: #a9c6e7;
}

.bottom-text .link {
    margin-left: 6px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(4, 19, 38, 0.3);
    border-top-color: #041326;
    display: inline-block;
    margin-right: 8px;
    animation: spin 0.75s linear infinite;
    vertical-align: middle;
}

.reveal-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.56s ease, transform 0.56s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keep fixed topbar centered while still using reveal animation. */
.topbar.reveal-item {
    transform: translateX(-50%) translateY(16px);
}

.topbar.reveal-item.is-visible {
    transform: translateX(-50%) translateY(0);
}

@keyframes blobDrift {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(16px, -18px, 0);
    }
}

@keyframes geoFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(var(--geo-rot, 0deg));
    }

    50% {
        transform: translate3d(0, -12px, 0) rotate(var(--geo-rot, 0deg));
    }
}

@keyframes geoSpinA {
    from {
        transform: rotate(16deg);
    }

    to {
        transform: rotate(376deg);
    }
}

@keyframes geoSpinB {
    from {
        transform: rotate(8deg);
    }

    to {
        transform: rotate(-352deg);
    }
}

@keyframes geoPulse {

    0%,
    100% {
        opacity: 0.24;
    }

    50% {
        opacity: 0.54;
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .preview-widget {
        width: min(400px, 100%);
    }
}

@media (max-width: 760px) {
    .login-shell {
        width: min(95vw, 620px);
        padding-top: 136px;
    }

    .login-topbar {
        flex-wrap: wrap;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero-title {
        font-size: clamp(1.7rem, 8vw, 2.5rem);
    }

    .geo-square-b,
    .geo-line-b,
    .geo-triangle-b {
        display: none;
    }
}

@media (max-width: 560px) {
    .hero-panel,
    .login-card {
        padding: 18px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .trial-btn {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
