/* ========================================================
   DevOpsSchool Student Portal - modern student theme
   Keycloak 26.x login theme
   ======================================================== */

:root {
    --ds-ink: #07111f;
    --ds-ink-2: #0b2037;
    --ds-surface: rgba(255, 255, 255, 0.08);
    --ds-surface-strong: rgba(255, 255, 255, 0.13);
    --ds-panel: rgba(255, 255, 255, 0.96);
    --ds-panel-soft: rgba(244, 248, 252, 0.94);
    --ds-border-light: rgba(255, 255, 255, 0.14);
    --ds-border: #d7e1eb;
    --ds-border-strong: #bfd0e0;
    --ds-text: #102033;
    --ds-text-muted: #60758a;
    --ds-text-soft: #9bb0c5;
    --ds-accent: #13a8ff;
    --ds-accent-2: #22c55e;
    --ds-accent-3: #f59e0b;
    --ds-danger: #c62828;
    --ds-success: #15803d;
    --ds-warning: #b45309;
    --ds-brand-gradient: linear-gradient(135deg, #13a8ff 0%, #0f7adf 42%, #22c55e 100%);
    --ds-hero-gradient: linear-gradient(145deg, #07111f 0%, #0b2037 42%, #15385d 100%);
    --ds-card-shadow: 0 32px 70px -28px rgba(5, 15, 29, 0.78);
    --ds-panel-shadow: 0 38px 80px -26px rgba(6, 18, 34, 0.4);
}

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

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100% !important;
    height: auto !important;
    color: var(--ds-text);
    background: var(--ds-hero-gradient) !important;
    font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body,
body.login-pf,
body.login-pf-page {
    min-height: 100vh !important;
    background: var(--ds-hero-gradient) !important;
    position: relative;
}

html::before,
html::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

html::before {
    background:
        radial-gradient(circle at 16% 16%, rgba(19, 168, 255, 0.28) 0%, transparent 34%),
        radial-gradient(circle at 84% 22%, rgba(34, 197, 94, 0.22) 0%, transparent 28%),
        radial-gradient(circle at 55% 78%, rgba(245, 158, 11, 0.18) 0%, transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(19, 168, 255, 0.16) 0%, transparent 26%);
    filter: blur(8px);
    animation: ds-orb-drift 18s ease-in-out infinite alternate;
}

html::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.32;
    mask-image: radial-gradient(circle at center, #000 24%, transparent 82%);
    -webkit-mask-image: radial-gradient(circle at center, #000 24%, transparent 82%);
}

@keyframes ds-orb-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(1.5%, -2.5%, 0) scale(1.06); }
    100% { transform: translate3d(-2.5%, 1.5%, 0) scale(1); }
}

.login-pf,
.login-pf-page,
.login-pf-page .card-pf,
.login-pf-page-header,
#kc-container,
#kc-container-wrapper,
#kc-content,
#kc-content-wrapper,
#kc-form,
#kc-form-wrapper,
.card-pf,
.login-pf-body,
.login-pf-accounts,
.login-pf-settings,
.login-pf-sidebar {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

#kc-header,
#kc-header-wrapper,
#kc-page-title,
.login-pf-page-header,
.login-pf-brand,
.kc-logo-text {
    display: none !important;
}

.ds-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 1460px;
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: 26px;
    align-items: center;
}

.ds-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: transparent;
}

.ds-left,
.ds-right {
    min-width: 0;
}

.ds-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 8px 6px 8px 10px;
    color: #f1f6fb;
}

.ds-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ds-logo-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--ds-brand-gradient);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Bahnschrift", "Aptos", "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 34px -12px rgba(19, 168, 255, 0.45);
}

.ds-logo-mark::after {
    content: "";
    position: absolute;
    inset: -35%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.4) 85deg, transparent 180deg);
    animation: ds-spin 8s linear infinite;
}

.ds-logo-mark span,
.ds-feature-icon svg,
.ds-mail-icon svg {
    position: relative;
    z-index: 1;
}

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

.ds-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ds-brand-name,
.ds-hero-title,
.ds-form-header h2,
.ds-note-card h3,
.ds-feature-card h3,
.ds-journey-head h3,
.ds-mini-card strong,
.ds-track-card strong {
    font-family: "Bahnschrift", "Aptos", "Segoe UI", sans-serif;
}

.ds-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.ds-brand-sub {
    font-size: 12px;
    color: var(--ds-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #dbf4ff;
    background: rgba(19, 168, 255, 0.16);
    border: 1px solid rgba(19, 168, 255, 0.22);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.ds-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
    animation: ds-pulse 2.4s ease-out infinite;
}

@keyframes ds-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
    75% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ds-hero-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ds-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cceaff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    backdrop-filter: blur(16px);
}

.ds-hero-eyebrow svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ds-hero-title {
    margin: 0;
    max-width: 700px;
    font-size: clamp(2rem, 3.9vw, 3.25rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
}

.ds-grad-text {
    background: linear-gradient(135deg, #8de1ff 0%, #c6f6ff 35%, #f6d17f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ds-hero-subtitle {
    margin: 0;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.62;
    color: #bfd1e4;
}

.ds-quick-points {
    display: grid;
    gap: 10px;
}

.ds-quick-point {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: var(--ds-surface);
    border: 1px solid var(--ds-border-light);
    backdrop-filter: blur(16px);
}

.ds-quick-point strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ds-quick-point span {
    display: block;
    color: #bed1e3;
    font-size: 12.5px;
    line-height: 1.5;
}

.ds-stats,
.ds-link-grid,
.ds-feature-grid,
.ds-track-grid,
.ds-mini-grid {
    display: grid;
    gap: 14px;
}

.ds-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-stat,
.ds-link-card,
.ds-feature-card,
.ds-track-card,
.ds-journey-card,
.ds-note-card,
.ds-testimonial {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border-light);
    backdrop-filter: blur(16px);
}

.ds-stat {
    border-radius: 18px;
    padding: 18px 16px;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.ds-stat:hover,
.ds-link-card:hover,
.ds-feature-card:hover,
.ds-track-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.11);
}

.ds-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.ds-stat-label {
    margin-top: 7px;
    font-size: 12px;
    color: #b5c7d8;
    line-height: 1.4;
}

.ds-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds-link-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds-link-card {
    min-width: 0;
    border-radius: 18px;
    padding: 14px 16px;
    text-decoration: none;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.ds-link-card:focus-visible,
.ds-social-btn:focus-visible,
.ds-link:focus-visible,
.ds-btn:focus-visible {
    outline: 2px solid #8de1ff;
    outline-offset: 3px;
}

.ds-link-card-label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ds-link-card-copy {
    display: block;
    color: #b8cce0;
    font-size: 12px;
    line-height: 1.45;
}

.ds-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px 20px 18px;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.ds-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(19, 168, 255, 0.11), transparent 58%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.ds-feature-card:hover::before {
    opacity: 1;
}

.ds-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: #fff;
    background: var(--ds-brand-gradient);
    box-shadow: 0 16px 28px -16px rgba(19, 168, 255, 0.68);
}

.ds-feature-icon svg {
    width: 22px;
    height: 22px;
}

.ds-feature-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
}

.ds-feature-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #bfd2e3;
    position: relative;
}

.ds-journey-card,
.ds-note-card,
.ds-testimonial {
    border-radius: 24px;
    padding: 22px 24px;
}

.ds-journey-head h3,
.ds-note-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 19px;
}

.ds-journey-head p,
.ds-note-card p {
    margin: 0;
    color: #bfd2e3;
    font-size: 14px;
    line-height: 1.65;
}

.ds-journey-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.ds-journey-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.ds-journey-step {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.ds-journey-item strong,
.ds-track-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.ds-journey-item span,
.ds-track-card span {
    display: block;
    color: #bdd0e2;
    font-size: 13.5px;
    line-height: 1.55;
}

.ds-track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds-track-card {
    border-radius: 18px;
    padding: 18px 18px;
}

.ds-testimonial {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.ds-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--ds-brand-gradient);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 30px -18px rgba(19, 168, 255, 0.58);
}

.ds-testimonial-body p {
    margin: 0 0 9px;
    font-size: 14px;
    line-height: 1.65;
    color: #eff6fb;
}

.ds-testimonial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #b7cbdd;
}

.ds-stars {
    color: #ffd98b;
    font-weight: 700;
}

.ds-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-form-card {
    width: 100%;
    max-width: 560px;
    border-radius: 30px;
    padding: 24px 24px 20px;
    background: linear-gradient(180deg, var(--ds-panel) 0%, var(--ds-panel-soft) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--ds-panel-shadow);
    position: relative;
    backdrop-filter: blur(24px);
}

.ds-form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(140deg, rgba(19, 168, 255, 0.44), rgba(34, 197, 94, 0.24), rgba(245, 158, 11, 0.18));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.ds-form-topline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.ds-form-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(19, 168, 255, 0.1);
    color: #0f76d8;
    border: 1px solid rgba(19, 168, 255, 0.16);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.ds-inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ds-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef5fb;
    color: var(--ds-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ds-form-header h2 {
    margin: 0 0 8px;
    color: var(--ds-text);
    font-size: 29px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.ds-form-header p {
    margin: 0 0 14px;
    color: var(--ds-text-muted);
    font-size: 13.5px;
    line-height: 1.58;
}

.ds-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.ds-mini-card {
    border-radius: 18px;
    padding: 14px 14px 13px;
    background: #f3f8fb;
    border: 1px solid #dce7f1;
    min-width: 0;
}

.ds-mini-card strong {
    display: block;
    color: var(--ds-text);
    font-size: 14px;
    margin-bottom: 4px;
}

.ds-mini-card span {
    display: block;
    color: var(--ds-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.ds-step-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ds-step-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff5fa;
    border: 1px solid #d5e3ee;
    color: var(--ds-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.ds-step-item.is-active {
    background: rgba(19, 168, 255, 0.12);
    border-color: rgba(19, 168, 255, 0.22);
    color: #0f76d8;
}

.ds-social-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.ds-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid var(--ds-border);
    background: #fff;
    color: var(--ds-text);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ds-social-btn:hover {
    transform: translateY(-1px);
    background: #f7fbfe;
    border-color: #add9f7;
    box-shadow: 0 18px 28px -24px rgba(19, 168, 255, 0.42);
}

.ds-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 18px;
    color: var(--ds-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.ds-divider::before,
.ds-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #d5e3ee 32%, #d5e3ee 68%, transparent 100%);
}

.ds-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ds-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ds-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ds-field label {
    color: var(--ds-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ds-label-accent {
    color: #0f76d8;
    font-weight: 700;
}

.ds-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ds-input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #8ca0b4;
    pointer-events: none;
    transition: color 0.18s ease;
    z-index: 2;
}

.ds-input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 14px 0 45px;
    border-radius: 15px;
    border: 1.5px solid var(--ds-border);
    background: #fff;
    color: var(--ds-text);
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-family: inherit;
}

.ds-input::placeholder {
    color: #8ea3b7;
}

.ds-input:hover {
    border-color: var(--ds-border-strong);
}

.ds-input:focus {
    outline: none;
    border-color: #6cc9ff;
    box-shadow: 0 0 0 4px rgba(19, 168, 255, 0.13);
}

.ds-input-wrap:focus-within .ds-input-icon {
    color: #0f76d8;
}

.ds-password-wrap .ds-input {
    padding-right: 74px;
}

.ds-toggle-password {
    position: absolute;
    right: 8px;
    border: none;
    background: transparent;
    color: #0f76d8;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.18s ease, color 0.18s ease;
}

.ds-toggle-password:hover {
    background: rgba(19, 168, 255, 0.1);
}

.ds-input.is-match {
    border-color: #41b96d;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.ds-input.is-mismatch {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.ds-strength {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
}

.ds-strength-bar {
    height: 5px;
    border-radius: 999px;
    background: #e0e8f0;
    transition: background 0.22s ease;
}

.ds-strength.s1 .ds-strength-bar:nth-child(-n+1) { background: #ef4444; }
.ds-strength.s2 .ds-strength-bar:nth-child(-n+2) { background: #f59e0b; }
.ds-strength.s3 .ds-strength-bar:nth-child(-n+3) { background: #13a8ff; }
.ds-strength.s4 .ds-strength-bar:nth-child(-n+4) { background: #22c55e; }

.ds-strength-text {
    font-size: 12px;
    color: var(--ds-text-muted);
    font-weight: 700;
}

.ds-rule-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: grid;
    gap: 7px;
}

.ds-rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ds-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.ds-rule-item::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dce6ef;
    box-shadow: inset 0 0 0 2px #c6d6e4;
    flex-shrink: 0;
}

.ds-rule-item.is-valid {
    color: var(--ds-success);
    font-weight: 700;
}

.ds-rule-item.is-valid::before {
    background: #dcfce7;
    box-shadow: inset 0 0 0 2px rgba(21, 128, 61, 0.35);
}

.ds-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ds-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ds-text-muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.ds-check-terms {
    align-items: flex-start;
    padding: 12px 12px;
    border-radius: 16px;
    background: #f4f8fb;
    border: 1px solid #dde8f1;
    line-height: 1.45;
}

.ds-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #0f76d8;
    cursor: pointer;
    flex-shrink: 0;
}

.ds-link {
    color: #0f76d8;
    text-decoration: none;
    font-weight: 700;
}

.ds-link:hover {
    color: #0c63b8;
    text-decoration: underline;
}

.ds-link-strong {
    font-weight: 700;
}

.ds-actions {
    margin-top: 4px;
}

.ds-btn {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.ds-btn-primary {
    color: #fff;
    background: var(--ds-brand-gradient);
    box-shadow: 0 24px 34px -22px rgba(19, 168, 255, 0.54);
}

.ds-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 54%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ds-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 28px 40px -22px rgba(19, 168, 255, 0.62);
}

.ds-btn-primary:hover::before {
    opacity: 1;
}

.ds-btn-secondary {
    background: #fff;
    color: var(--ds-text);
    border: 1.5px solid var(--ds-border);
}

.ds-btn-secondary:hover {
    border-color: #91cfee;
    background: #f7fbfe;
}

.ds-footer-text {
    text-align: center;
    color: var(--ds-text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.ds-support-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f3f8fb;
    border: 1px solid #dde8f1;
}

.ds-support-inline strong {
    display: block;
    color: var(--ds-text);
    font-size: 13px;
    margin-bottom: 3px;
}

.ds-support-inline span {
    display: block;
    color: var(--ds-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.ds-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding-top: 14px;
    border-top: 1px dashed #d2dfeb;
}

.ds-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ds-text-muted);
    font-size: 11.5px;
    font-weight: 700;
}

.ds-trust-item svg {
    width: 14px;
    height: 14px;
    color: #22a95d;
}

.ds-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 4px;
}

.ds-alert::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: 1px;
}

.ds-alert-success {
    background: #ecfdf5;
    border: 1px solid #b7ebcd;
    color: var(--ds-success);
}

.ds-alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803d'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm3.7-9.7a1 1 0 0 0-1.4-1.4L9 10.2 7.7 8.9a1 1 0 1 0-1.4 1.4l2 2a1 1 0 0 0 1.4 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.ds-alert-error,
.ds-alert-danger {
    background: #fef2f2;
    border: 1px solid #f4c7c7;
    color: var(--ds-danger);
}

.ds-alert-error::before,
.ds-alert-danger::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c62828'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM8.3 7.3a1 1 0 0 1 1.4 0L10 7.6l.3-.3a1 1 0 1 1 1.4 1.4L11.4 9l.3.3a1 1 0 1 1-1.4 1.4L10 10.4l-.3.3a1 1 0 0 1-1.4-1.4L8.6 9l-.3-.3a1 1 0 0 1 0-1.4z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.ds-alert-warning {
    background: #fff7ed;
    border: 1px solid #f8d5ac;
    color: var(--ds-warning);
}

.ds-alert-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b45309'%3E%3Cpath fill-rule='evenodd' d='M8.485 2.495a1.75 1.75 0 0 1 3.03 0l6.28 10.875A1.75 1.75 0 0 1 16.28 16H3.72a1.75 1.75 0 0 1-1.515-2.63L8.485 2.495zM10 6a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 6zm0 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.ds-alert-custom,
.ds-alert-info {
    background: #eff8ff;
    border: 1px solid #c9e7fb;
    color: #0f76d8;
}

.ds-alert-custom::before,
.ds-alert-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f76d8'%3E%3Cpath fill-rule='evenodd' d='M18 10A8 8 0 1 1 2 10a8 8 0 0 1 16 0zm-8-3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm1 7V9H9v5h2z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.ds-error {
    color: var(--ds-danger);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
}

.ds-hint {
    color: var(--ds-text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.ds-hint.is-valid {
    color: var(--ds-success);
    font-weight: 700;
}

.ds-hint.is-error {
    color: var(--ds-danger);
    font-weight: 700;
}

.ds-hidden {
    display: none !important;
}

.ds-mail-icon-wrap {
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.ds-mail-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: var(--ds-brand-gradient);
    color: #fff;
    box-shadow: 0 24px 40px -18px rgba(19, 168, 255, 0.55);
    position: relative;
}

.ds-mail-icon::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    border: 2px dashed rgba(19, 168, 255, 0.18);
}

.ds-mail-icon svg {
    width: 28px;
    height: 28px;
}

.ds-info-content p {
    color: var(--ds-text-muted);
    line-height: 1.65;
    font-size: 14px;
}

.ds-help-box,
.ds-required-actions {
    border-radius: 18px;
    padding: 14px 16px;
}

.ds-help-box {
    background: #f4f8fb;
    border: 1px solid #dde8f1;
}

.ds-help-box h4 {
    margin: 0 0 6px;
    color: var(--ds-text);
    font-size: 14px;
}

.ds-help-box p {
    margin: 0;
}

.ds-required-actions {
    background: #fff7ed;
    border: 1px solid #f8d5ac;
    color: var(--ds-warning);
}

.ds-required-actions p {
    margin: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.ds-action-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.ds-form-card,
.ds-left > * {
    animation: ds-rise 0.7s cubic-bezier(.2,.85,.24,1) both;
}

.ds-left > *:nth-child(1) { animation-delay: 0.02s; }
.ds-left > *:nth-child(2) { animation-delay: 0.08s; }
.ds-left > *:nth-child(3) { animation-delay: 0.14s; }
.ds-left > *:nth-child(4) { animation-delay: 0.2s; }
.ds-left > *:nth-child(5) { animation-delay: 0.26s; }
.ds-left > *:nth-child(6) { animation-delay: 0.32s; }
.ds-left > *:nth-child(7) { animation-delay: 0.38s; }

@keyframes ds-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .ds-page {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px 18px 30px;
    }

    .ds-left {
        padding: 8px 0 0;
    }

    .ds-right {
        align-items: flex-start;
    }

    .ds-form-card {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .ds-stats,
    .ds-mini-grid,
    .ds-feature-grid,
    .ds-track-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ds-page {
        padding: 16px 14px 24px;
    }

    .ds-form-card {
        padding: 22px 18px 20px;
        border-radius: 24px;
    }

    .ds-form-card::before {
        border-radius: 24px;
    }

    .ds-field-grid,
    .ds-quick-point,
    .ds-link-grid,
    .ds-link-grid--compact,
    .ds-feature-grid,
    .ds-track-grid,
    .ds-mini-grid,
    .ds-stats {
        grid-template-columns: 1fr;
    }

    .ds-quick-point {
        gap: 6px;
    }

    .ds-form-header h2 {
        font-size: 28px;
    }

    .ds-hero-subtitle {
        font-size: 15px;
    }

    .ds-support-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}

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