:root {
    --bg-primary: #050816;
    --bg-secondary: #090f24;
    --bg-tertiary: #111a38;
    --surface: rgba(15, 24, 52, 0.72);
    --surface-strong: rgba(16, 27, 58, 0.94);
    --surface-soft: rgba(255, 255, 255, 0.055);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(111, 193, 255, 0.3);
    --text-primary: #f7fbff;
    --text-secondary: #a9b7cf;
    --text-muted: #72829f;
    --accent-primary: #3abff8;
    --accent-secondary: #7267f0;
    --accent-tertiary: #00e0ba;
    --danger: #ff617e;
    --shadow-large: 0 40px 100px rgba(0, 0, 0, 0.48);
    --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    min-height: 100%;
    background: var(--bg-primary);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(58, 191, 248, 0.1),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(114, 103, 240, 0.12),
            transparent 34%
        ),
        var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
}

.auth-page {
    overflow-x: hidden;
}

.auth-background,
.dashboard-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-grid,
.dashboard-grid {
    position: absolute;
    inset: -30%;
    opacity: 0.23;
    transform:
        perspective(900px)
        rotateX(58deg)
        translateY(10%);
    transform-origin: center bottom;
    background-image:
        linear-gradient(
            rgba(81, 171, 255, 0.14) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(81, 171, 255, 0.14) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
    mask-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 1),
            transparent 75%
        );
}

.glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.5;
}

.glow-one {
    width: 420px;
    height: 420px;
    top: -180px;
    left: -110px;
    background: rgba(43, 180, 255, 0.22);
}

.glow-two {
    width: 540px;
    height: 540px;
    right: -220px;
    top: 18%;
    background: rgba(113, 82, 255, 0.22);
}

.glow-three {
    width: 360px;
    height: 360px;
    left: 40%;
    bottom: -200px;
    background: rgba(0, 224, 186, 0.16);
}

.auth-main {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding:
        max(28px, env(safe-area-inset-top))
        max(28px, env(safe-area-inset-right))
        max(28px, env(safe-area-inset-bottom))
        max(28px, env(safe-area-inset-left));
}

.auth-shell {
    width: min(1220px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(430px, 0.88fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );
    backdrop-filter: blur(20px);
}

.brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    padding: clamp(48px, 6vw, 84px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(53, 196, 255, 0.18),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(12, 28, 59, 0.96),
            rgba(7, 13, 32, 0.9)
        );
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.045) 50%,
            transparent 80%
        );
    transform: translateX(-100%);
    animation: brand-shimmer 10s infinite;
}

.brand-panel-content {
    position: relative;
    z-index: 2;
    max-width: 590px;
}

.brand-mark {
    width: 84px;
    height: 84px;
    margin-bottom: 42px;
    padding: 1px;
    border-radius: 27px;
    background:
        linear-gradient(
            145deg,
            rgba(90, 220, 255, 0.95),
            rgba(100, 86, 255, 0.95),
            rgba(0, 230, 194, 0.9)
        );
    box-shadow:
        0 18px 60px rgba(57, 166, 255, 0.28),
        inset 0 1px rgba(255, 255, 255, 0.5);
    transform:
        rotate(-7deg)
        translateZ(40px);
}

.brand-mark-inner {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 26px;
    font-size: 2.1rem;
    font-weight: 800;
    background:
        linear-gradient(
            145deg,
            #101b39,
            #070c1d
        );
    text-shadow:
        0 0 28px rgba(70, 201, 255, 0.65);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    font-size: 0.72rem;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--accent-primary);
}

.brand-heading h1,
.login-header h2,
.dashboard-hero h1 {
    margin: 0;
    font-weight: 760;
    letter-spacing: -0.045em;
}

.brand-heading h1 {
    max-width: 560px;
    font-size:
        clamp(
            3.2rem,
            6.6vw,
            5.7rem
        );
    line-height: 0.94;
}

.brand-heading h1 span {
    display: block;
    background:
        linear-gradient(
            90deg,
            #86e8ff,
            #8092ff,
            #62f5d3
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-heading p {
    max-width: 520px;
    margin: 30px 0 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.brand-features {
    display: grid;
    gap: 14px;
    margin-top: 52px;
}

.feature-card {
    display: flex;
    gap: 16px;
    align-items: center;
    width: min(460px, 100%);
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background:
        linear-gradient(
            110deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.014)
        );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.045);
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.feature-card:hover {
    transform:
        translateX(7px)
        translateZ(20px);
    border-color: rgba(65, 202, 255, 0.25);
    background:
        linear-gradient(
            110deg,
            rgba(64, 185, 255, 0.09),
            rgba(255, 255, 255, 0.018)
        );
}

.feature-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 0.72rem;
    font-weight: 850;
    color: #9ee7ff;
    background:
        linear-gradient(
            145deg,
            rgba(79, 201, 255, 0.17),
            rgba(103, 88, 255, 0.12)
        );
}

.feature-card strong,
.feature-card span {
    display: block;
}

.feature-card strong {
    margin-bottom: 4px;
    font-size: 0.91rem;
}

.feature-card span {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.brand-orbit {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -275px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.55;
    z-index: 0;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(83, 209, 255, 0.23);
}

.orbit-ring-one {
    inset: 0;
    animation: orbit-spin 18s linear infinite;
}

.orbit-ring-one::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 17%;
    left: 9%;
    border-radius: 50%;
    background: #60dfff;
    box-shadow:
        0 0 28px #43cfff;
}

.orbit-ring-two {
    inset: 70px;
    border-color: rgba(135, 101, 255, 0.25);
    animation: orbit-spin-reverse 14s linear infinite;
}

.orbit-ring-two::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    right: 12%;
    bottom: 21%;
    border-radius: 50%;
    background: #8a76ff;
    box-shadow:
        0 0 25px #8a76ff;
}

.orbit-core {
    position: absolute;
    inset: 150px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 30%,
            #9df8ff,
            #5b82ff 30%,
            #21195d 65%,
            #090d1e 100%
        );
    box-shadow:
        inset -20px -22px 40px rgba(0, 0, 0, 0.42),
        0 0 70px rgba(72, 169, 255, 0.35);
}

.form-panel {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(34px, 5vw, 64px);
    background:
        linear-gradient(
            150deg,
            rgba(10, 15, 35, 0.91),
            rgba(7, 11, 25, 0.98)
        );
}

.form-panel::before {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    top: 12%;
    right: -130px;
    border-radius: 50%;
    background: rgba(100, 73, 255, 0.12);
    filter: blur(70px);
}

.login-card {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    width: min(440px, 100%);
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(22, 32, 67, 0.78),
            rgba(8, 14, 32, 0.86)
        );
    box-shadow:
        0 30px 85px rgba(0, 0, 0, 0.42),
        inset 0 1px rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(26px);
    transform-style: preserve-3d;
    transform:
        perspective(1300px)
        rotateX(var(--rx))
        rotateY(var(--ry));
    transition:
        transform 130ms ease-out,
        border-color var(--transition),
        box-shadow var(--transition);
}

.login-card:hover {
    border-color: var(--border-strong);
    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(47, 168, 255, 0.09),
        inset 0 1px rgba(255, 255, 255, 0.09);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.085),
            transparent 22%,
            transparent 78%,
            rgba(76, 197, 255, 0.045)
        );
}

.login-card > * {
    position: relative;
    transform: translateZ(26px);
}

.login-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mini-logo {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 850;
    background:
        linear-gradient(
            145deg,
            #3ccfff,
            #7068ff
        );
}

.secure-badge,
.security-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(0, 232, 188, 0.2);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    color: #70f2d7;
    background: rgba(0, 224, 186, 0.07);
}

.secure-badge::before,
.security-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #45edc7;
    box-shadow:
        0 0 13px #45edc7;
}

.login-header h2 {
    font-size: clamp(2.1rem, 5vw, 3rem);
    line-height: 1;
}

.login-header p {
    margin: 18px 0 0;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.login-form {
    display: grid;
    gap: 23px;
    margin-top: 34px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    padding-left: 3px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd7eb;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 57px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(1, 7, 20, 0.5);
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        transform var(--transition);
}

.input-shell:focus-within {
    border-color: rgba(65, 197, 255, 0.56);
    background: rgba(4, 12, 29, 0.82);
    box-shadow:
        0 0 0 4px rgba(47, 182, 255, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.19);
    transform: translateY(-1px);
}

.input-icon {
    flex: 0 0 48px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #74d8ff;
}

.input-shell input {
    width: 100%;
    min-width: 0;
    height: 55px;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    color: var(--text-primary);
    background: transparent;
}

.input-shell input::placeholder {
    color: #586781;
}

.password-toggle {
    align-self: stretch;
    padding: 0 16px;
    color: #8edfff;
    cursor: pointer;
    font-size: 0.71rem;
    font-weight: 750;
    background: transparent;
}

.primary-button {
    position: relative;
    min-height: 58px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
    padding: 0 22px;
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    font-weight: 780;
    background:
        linear-gradient(
            120deg,
            #248fe8,
            #665ce9 55%,
            #7b5ff0
        );
    box-shadow:
        0 18px 40px rgba(63, 92, 229, 0.28),
        inset 0 1px rgba(255, 255, 255, 0.27);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.primary-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            transparent 25%,
            rgba(255, 255, 255, 0.24) 50%,
            transparent 75%
        );
    transform: translateX(-120%);
    transition: transform 600ms ease;
}

.primary-button:hover {
    transform:
        translateY(-3px)
        translateZ(20px);
    box-shadow:
        0 25px 50px rgba(63, 92, 229, 0.38),
        inset 0 1px rgba(255, 255, 255, 0.3);
}

.primary-button:hover::before {
    transform: translateX(120%);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.74;
}

.button-arrow {
    font-size: 1.3rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 0.79rem;
    line-height: 1.5;
}

.alert-error {
    border: 1px solid rgba(255, 89, 121, 0.24);
    color: #ffd7df;
    background: rgba(255, 72, 106, 0.08);
}

.alert-icon {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-weight: 900;
    color: #ffffff;
    background: rgba(255, 73, 108, 0.22);
}

.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-tertiary);
    box-shadow:
        0 0 12px var(--accent-tertiary);
}

.dashboard-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.dashboard-header {
    position: relative;
    z-index: 10;
    width: min(1450px, calc(100% - 48px));
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 24px auto 0;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(8, 14, 31, 0.76);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
}

.dashboard-brand,
.dashboard-user {
    display: flex;
    align-items: center;
}

.dashboard-brand {
    gap: 13px;
}

.dashboard-brand strong,
.dashboard-brand span,
.user-information strong,
.user-information span {
    display: block;
}

.dashboard-brand strong {
    font-size: 0.92rem;
}

.dashboard-brand span {
    margin-top: 2px;
    font-size: 0.69rem;
    color: var(--text-muted);
}

.dashboard-user {
    gap: 13px;
}

.user-information {
    text-align: right;
}

.user-information strong {
    font-size: 0.78rem;
}

.user-information span {
    margin-top: 3px;
    font-size: 0.65rem;
    color: var(--accent-primary);
}

.user-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(85, 205, 255, 0.23);
    border-radius: 14px;
    font-weight: 850;
    background:
        linear-gradient(
            145deg,
            rgba(64, 192, 255, 0.17),
            rgba(111, 86, 240, 0.17)
        );
}

.logout-button {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: #c7d2e5;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-main {
    position: relative;
    z-index: 1;
    width: min(1450px, calc(100% - 48px));
    margin: 0 auto;
    padding: 80px 0 60px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 420px);
    gap: 36px;
    align-items: center;
}

.dashboard-hero h1 {
    max-width: 900px;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.98;
}

.dashboard-hero h1 span {
    display: block;
    color: transparent;
    background:
        linear-gradient(
            90deg,
            #65d7ff,
            #8876ff,
            #55f2cf
        );
    -webkit-background-clip: text;
    background-clip: text;
}

.dashboard-hero p {
    max-width: 660px;
    margin-top: 26px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.hero-security-card {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(66, 196, 255, 0.18),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(20, 31, 67, 0.78),
            rgba(7, 12, 28, 0.92)
        );
    box-shadow: var(--shadow-card);
    transform-style: preserve-3d;
    transform:
        perspective(1200px)
        rotateX(var(--rx))
        rotateY(var(--ry));
    transition:
        transform 130ms ease-out,
        border-color var(--transition);
}

.hero-security-card > * {
    position: relative;
    z-index: 2;
    transform: translateZ(24px);
}

.hero-security-card strong {
    display: block;
    margin-top: 18px;
    font-size: 1.45rem;
}

.hero-security-card p {
    margin: 7px 0 0;
    font-size: 0.78rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 70px;
}

.dashboard-card {
    position: relative;
    min-height: 210px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.052),
            rgba(255, 255, 255, 0.018)
        );
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2);
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-7px);
    border-color: rgba(73, 192, 255, 0.28);
}

.card-number {
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
}

.dashboard-card h2 {
    margin: 47px 0 9px;
    font-size: 1.4rem;
}

.dashboard-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.error-container {
    width: min(600px, 100%);
    padding: 50px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 30px;
    background:
        linear-gradient(
            145deg,
            rgba(22, 32, 67, 0.78),
            rgba(8, 14, 32, 0.88)
        );
    box-shadow: var(--shadow-large);
}

.error-code {
    font-size: clamp(5rem, 17vw, 9rem);
    line-height: 1;
    font-weight: 900;
    color: transparent;
    background:
        linear-gradient(
            90deg,
            #50d4ff,
            #7267f0
        );
    -webkit-background-clip: text;
    background-clip: text;
}

.error-container h1 {
    margin: 18px 0 12px;
}

.error-container p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.error-button {
    margin-top: 25px;
}

@media (max-width: 1060px) {
    .auth-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .brand-panel {
        min-height: 510px;
    }

    .brand-orbit {
        right: -240px;
    }

    .form-panel {
        min-height: 650px;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .hero-security-card {
        max-width: 560px;
    }
}

@media (max-width: 760px) {
    .auth-main {
        padding: 15px;
        align-items: stretch;
    }

    .auth-shell {
        width: 100%;
        border-radius: 24px;
    }

    .brand-panel {
        min-height: auto;
        padding: 38px 25px 42px;
    }

    .brand-mark {
        width: 66px;
        height: 66px;
        margin-bottom: 32px;
        border-radius: 21px;
    }

    .brand-mark-inner {
        border-radius: 20px;
    }

    .brand-heading h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .brand-heading p {
        margin-top: 23px;
        font-size: 0.92rem;
    }

    .brand-features {
        margin-top: 34px;
    }

    .brand-orbit {
        display: none;
    }

    .form-panel {
        min-height: auto;
        padding: 26px 16px 34px;
    }

    .login-card {
        padding: 27px 20px;
        border-radius: 22px;
        transform: none !important;
    }

    .login-card > * {
        transform: none;
    }

    .login-card-top {
        margin-bottom: 32px;
    }

    .login-header h2 {
        font-size: 2.15rem;
    }

    .dashboard-header {
        width: calc(100% - 24px);
        margin-top: 12px;
        padding: 12px;
    }

    .dashboard-brand span,
    .user-information {
        display: none;
    }

    .dashboard-user {
        gap: 8px;
    }

    .dashboard-main {
        width: calc(100% - 30px);
        padding-top: 55px;
    }

    .dashboard-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.2rem);
    }

    .hero-security-card {
        min-height: 220px;
        transform: none !important;
    }

    .hero-security-card > * {
        transform: none;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        margin-top: 44px;
    }

    .error-container {
        padding: 36px 20px;
    }
}

@media (max-width: 430px) {
    .feature-card {
        padding: 13px 14px;
    }

    .feature-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .secure-badge {
        font-size: 0.55rem;
    }

    .password-toggle {
        padding: 0 12px;
    }

    .dashboard-brand strong {
        font-size: 0.75rem;
    }

    .dashboard-header .mini-logo {
        width: 38px;
        height: 38px;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
    }
}

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

    .login-card,
    .hero-security-card {
        transform: none !important;
    }
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

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

@keyframes orbit-spin-reverse {
    from {
        transform: rotate(360deg);
    }

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

@keyframes brand-shimmer {
    0%,
    72% {
        transform: translateX(-110%);
    }

    88%,
    100% {
        transform: translateX(110%);
    }
}
