:root {
    --cc-bg: #050b16;
    --cc-panel: rgba(10, 19, 37, 0.88);
    --cc-panel-strong: rgba(14, 26, 51, 0.96);
    --cc-line: rgba(163, 182, 214, 0.18);
    --cc-line-strong: rgba(217, 179, 108, 0.22);
    --cc-text: #f4f7fb;
    --cc-text-soft: #a2b1c8;
    --cc-gold: #d9b36c;
    --cc-blue: #84b5ff;
    --cc-green: #26c58a;
    --cc-danger: #ff7777;
    --cc-shadow: 0 26px 64px rgba(2, 8, 20, 0.48);
}

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

html {
    min-height: 100%;
}

body.page-coaches-course-register {
    min-height: 100vh;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--cc-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(132, 181, 255, 0.16), transparent 24%),
        radial-gradient(circle at 85% 8%, rgba(217, 179, 108, 0.13), transparent 22%),
        radial-gradient(circle at 52% 100%, rgba(38, 197, 138, 0.12), transparent 32%),
        linear-gradient(180deg, #04070c 0%, #08111d 42%, #0e1727 100%);
    padding: 28px 18px;
}

body.page-coaches-course-register::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.02) calc(100% - 1px)),
        linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.02) calc(100% - 1px));
    background-size: 56px 56px;
    pointer-events: none;
    z-index: -1;
}

.page-shell {
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 34px;
    align-items: start;
    padding: 12px 0 18px;
}

.info-panel,
.form-panel {
    border: 1px solid var(--cc-line);
    border-radius: 26px;
    background: var(--cc-panel);
    box-shadow: var(--cc-shadow);
}

.info-panel {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 18px;
    padding: 28px;
    background:
        radial-gradient(circle at 18% 18%, rgba(217, 179, 108, 0.16), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(38, 197, 138, 0.16), transparent 30%),
        linear-gradient(150deg, rgba(7, 13, 24, 0.98), rgba(14, 25, 48, 0.96));
}

.brand-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(222, 230, 243, 0.18);
    background: rgba(255, 255, 255, 0.03);
    font-family: 'Sora', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cc-gold), #f6d79b);
    box-shadow: 0 0 0 7px rgba(217, 179, 108, 0.14);
}

.panel-kicker,
.form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--cc-gold);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.panel-kicker::before,
.form-kicker::before {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(217, 179, 108, 0.48);
}

.info-panel h1 {
    max-width: 11ch;
    margin-top: 16px;
    color: var(--cc-text);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.info-panel p,
.form-head p,
.form-note,
.footer-note {
    color: var(--cc-text-soft);
}

.info-panel p {
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.75;
}

.info-list {
    list-style: none;
    display: grid;
    gap: 0;
    padding-top: 8px;
}

.info-list li {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--cc-text-soft);
    line-height: 1.6;
}

.info-list li:first-child {
    border-top: 0;
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cc-gold);
}

.info-list i {
    display: none;
}

.info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn-link {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--cc-line);
    background: transparent;
    color: var(--cc-text);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.btn-link:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 179, 108, 0.55);
    background: rgba(255, 255, 255, 0.03);
}

.info-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--cc-line);
}

.info-metric {
    padding-left: 14px;
    border-left: 1px solid rgba(217, 179, 108, 0.36);
}

.info-metric strong {
    display: block;
    margin-bottom: 6px;
    color: var(--cc-text);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.45rem;
    line-height: 0.95;
    text-transform: uppercase;
}

.info-metric span {
    color: var(--cc-text-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.form-panel {
    position: relative;
    padding: 28px;
    background: linear-gradient(165deg, rgba(13, 24, 46, 0.96), rgba(9, 17, 32, 0.98));
}

.form-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: min(180px, 44%);
    height: 2px;
    background: linear-gradient(90deg, var(--cc-gold), rgba(217, 179, 108, 0.15));
    pointer-events: none;
}

.form-head {
    margin-bottom: 24px;
}

.form-head h2 {
    margin-top: 14px;
    color: var(--cc-text);
    font-family: 'Sora', sans-serif;
    font-size: 1.7rem;
    line-height: 1.1;
}

.form-head p {
    max-width: 58ch;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.78;
}

.form-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cc-line);
}

.form-summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cc-text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.form-summary span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cc-gold);
    flex: 0 0 auto;
}

.alert {
    display: none;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--cc-line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--cc-text);
    font-weight: 700;
}

.alert.error {
    display: block;
    border-color: rgba(255, 119, 119, 0.34);
    background: rgba(109, 15, 15, 0.22);
}

.alert.success {
    display: block;
    border-color: rgba(38, 197, 138, 0.34);
    background: rgba(6, 78, 59, 0.2);
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 34px 0 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--cc-line);
    color: var(--cc-text);
    font-family: 'Sora', sans-serif;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

.section-title:first-of-type {
    margin-top: 0;
}

.section-title i {
    color: var(--cc-gold);
}

.section-title--wide {
    width: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

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

.form-group.full-span {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--cc-text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.input-with-icon {
    position: relative;
    padding-bottom: 2px;
}

.input-with-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(196, 212, 235, 0.18);
    pointer-events: none;
}

.input-with-icon::before {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--cc-gold);
    transition: right 0.22s ease;
    pointer-events: none;
}

.input-with-icon:focus-within::before {
    right: 0;
}

.input-with-icon:has(#registerPassword)::after,
.input-with-icon:has(#registerPassword)::before {
    bottom: 73px;
}

.input-with-icon:has(#registerPassword) i {
    transform: translateY(calc(-50% - 54px));
}

.input-with-icon i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cc-text-soft);
    pointer-events: none;
}

.input-with-icon:has(textarea) i {
    top: 16px;
    transform: none;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
    width: 100%;
    display: block;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--cc-text);
    font-family: inherit;
    font-size: 0.95rem;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.input-with-icon #registerPassword {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    letter-spacing: 0;
    line-height: 1;
    padding: 0 0 30px 28px;
    transform: translateY(-22px);
}

.input-with-icon #registerPassword::-ms-reveal,
.input-with-icon #registerPassword::-ms-clear {
    display: none;
}

.input-with-icon #registerPassword::-webkit-credentials-auto-fill-button,
.input-with-icon #registerPassword::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

.input-with-icon #registerPassword::-webkit-textfield-decoration-container,
.input-with-icon #registerPassword::-webkit-caps-lock-indicator {
    display: none !important;
    visibility: hidden;
}

.input-with-icon input,
.input-with-icon select {
    min-height: 56px;
    height: 56px;
    padding: 16px 0 14px 28px;
}

.input-with-icon textarea {
    min-height: 138px;
    padding: 16px 0 16px 28px;
    line-height: 1.65;
    resize: vertical;
}

.input-with-icon input::placeholder,
.input-with-icon textarea::placeholder {
    color: rgba(162, 177, 200, 0.72);
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.input-with-icon textarea:focus {
    background: transparent;
}

.form-note {
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.65;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
    padding: 18px 0 0;
    border-top: 1px solid var(--cc-line);
    color: var(--cc-text-soft);
    line-height: 1.75;
}

.checkbox-row input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.submit-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    color: #06111f;
    background: linear-gradient(135deg, var(--cc-gold), #f5d58f 56%, #fff0cd);
    box-shadow: 0 16px 34px rgba(217, 179, 108, 0.32);
    cursor: pointer;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(217, 179, 108, 0.38);
}

.submit-btn.loading {
    opacity: 0.82;
    cursor: wait;
}

.submit-btn.loading i {
    animation: spin 1s linear infinite;
}

.footer-note {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--cc-line);
    text-align: left;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

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

@media (max-width: 980px) {
    .page-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .info-panel {
        position: static;
    }
}

@media (max-width: 680px) {
    body.page-coaches-course-register {
        padding: 18px 12px;
    }

    .info-panel,
    .form-panel {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-actions {
        flex-direction: column;
    }

    .info-metrics {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .btn-link,
    .submit-btn {
        width: 100%;
    }

    .form-summary {
        gap: 12px;
    }

    .input-with-icon input,
    .input-with-icon select {
        min-height: 54px;
        height: 54px;
    }
}

:root[data-theme='light'] {
    --cc-bg: #eff4fb;
    --cc-panel: rgba(255, 255, 255, 0.94);
    --cc-panel-strong: rgba(255, 255, 255, 0.98);
    --cc-line: rgba(113, 128, 150, 0.25);
    --cc-line-strong: rgba(217, 179, 108, 0.24);
    --cc-text: #10233d;
    --cc-text-soft: #4d647f;
    --cc-shadow: 0 26px 64px rgba(15, 23, 42, 0.14);
}

:root[data-theme='light'] body.page-coaches-course-register {
    background:
        radial-gradient(circle at 12% 10%, rgba(31, 95, 154, 0.16), transparent 24%),
        radial-gradient(circle at 85% 8%, rgba(217, 179, 108, 0.12), transparent 22%),
        radial-gradient(circle at 52% 100%, rgba(38, 197, 138, 0.08), transparent 32%),
        linear-gradient(180deg, #eef3f9 0%, #f6f9fc 42%, #edf3fb 100%);
}

:root[data-theme='light'] body.page-coaches-course-register::before {
    background:
        linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(17, 34, 64, 0.03) calc(100% - 1px)),
        linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(17, 34, 64, 0.03) calc(100% - 1px));
}

:root[data-theme='light'] .info-panel {
    background:
        radial-gradient(circle at 18% 18%, rgba(217, 179, 108, 0.16), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(38, 197, 138, 0.12), transparent 30%),
        linear-gradient(150deg, #f7fbff, #edf4ff);
}

:root[data-theme='light'] .brand-pill,
:root[data-theme='light'] .btn-link,
:root[data-theme='light'] .checkbox-row {
    background: rgba(255, 255, 255, 0.9);
}

:root[data-theme='light'] .input-with-icon input,
:root[data-theme='light'] .input-with-icon select,
:root[data-theme='light'] .input-with-icon textarea {
    color: var(--cc-text);
}

:root[data-theme='light'] .submit-btn {
    color: #08121e;
}
