/* Lastech Academy — Multi-step registration */

.register {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4.5rem 1.25rem 2rem;
}

.register__wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
}

.register__card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 130, 251, 0.12);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 64px rgba(0, 40, 100, 0.12);
}

html:not(.light) .register__card {
    background: rgba(10, 22, 40, 0.88);
    border-color: rgba(0, 198, 255, 0.15);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.register__head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.register__logo {
    display: block;
    width: auto;
    height: 5.5rem;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.register__head h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

html:not(.light) .register__head h1 { color: #f1f5f9; }

.register__head p {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.register__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.register__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.register__step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
    transition: all 0.2s;
}

.register__step.is-active .register__step-num,
.register__step.is-done .register__step-num {
    background: linear-gradient(135deg, #0082fb, #00c6ff);
    color: #fff;
}

.register__step-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.register__step.is-active .register__step-label { color: #0082fb; }

.register__errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #b91c1c;
}

.register__errors ul { list-style: disc; padding-left: 1.25rem; }

.register__pane h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

html:not(.light) .register__pane h2 { color: #f1f5f9; }

.register__hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.register__courses {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 320px;
    overflow-y: auto;
}

.register__course {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.register__course:hover { border-color: #93c5fd; }

.register__course.is-selected {
    border-color: #0082fb;
    background: rgba(0, 130, 251, 0.06);
}

.register__course img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.register__course strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

html:not(.light) .register__course strong { color: #f1f5f9; }

.register__course span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0082fb;
}

.register__methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

@media (max-width: 480px) {
    .register__methods { grid-template-columns: 1fr; }
}

.register__method {
    padding: 0.85rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s;
}

.register__method.is-selected {
    border-color: #0082fb;
    background: rgba(0, 130, 251, 0.06);
}

.register__method strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
}

html:not(.light) .register__method strong { color: #f1f5f9; }

.register__method span {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.2rem;
    display: block;
}

.register__instructions {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 0.85rem;
    border: 1px solid #bae6fd;
}

html:not(.light) .register__instructions {
    background: rgba(0, 130, 251, 0.1);
    border-color: rgba(0, 198, 255, 0.2);
}

.register__instructions h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 0.35rem;
}

.register__instructions p {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

html:not(.light) .register__instructions p { color: #cbd5e1; }

.register__pay-number {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.register__field {
    margin-bottom: 1rem;
}

.register__field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

html:not(.light) .register__field label { color: #cbd5e1; }

.register__field label span { font-weight: 400; color: #94a3b8; }

.register__field input,
.register__field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
}

html:not(.light) .register__field input,
html:not(.light) .register__field textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
}

.register__field input:focus,
.register__field textarea:focus {
    outline: none;
    border-color: #0082fb;
    box-shadow: 0 0 0 3px rgba(0, 130, 251, 0.15);
}

.register__preview {
    margin-top: 0.75rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-height: 200px;
}

.register__preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.register__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.register__btn {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.register__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.register__btn--primary {
    background: linear-gradient(135deg, #0082fb, #00c6ff);
    color: #fff;
    flex: 1;
}

.register__btn--ghost {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.register__login {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #64748b;
}

.register__login a {
    color: #0082fb;
    font-weight: 600;
    text-decoration: none;
}

.register__login a:hover { text-decoration: underline; }

.register__empty {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
