body {
    background: #dedede;
}

.register-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(330px, 38%) 1fr;
}

.register-side {
    min-height: 100vh;
    padding: 42px;
    background: #111111;
    color: #ffffff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.register-side::before {
    content: "";
    width: 430px;
    height: 430px;
    border: 90px solid var(--red);
    border-radius: 50%;
    position: absolute;
    right: -240px;
    top: -190px;
}

.register-side::after {
    content: "";
    width: 230px;
    height: 230px;
    background: rgba(226, 27, 35, .35);
    border-radius: 50%;
    position: absolute;
    left: -120px;
    bottom: -100px;
}

.register-logo {
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.register-logo span {
    color: var(--red);
}

.register-side-content {
    max-width: 520px;
    margin: auto 0;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.register-side-content h1 {
    margin-top: 12px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.register-side-content p {
    margin-top: 17px;
    color: #aaaaaa;
    font-size: 17px;
    line-height: 1.55;
}

.security-list {
    margin-top: 30px;
    display: grid;
    gap: 10px;
}

.security-list span {
    color: #d3d3d3;
    font-size: 14px;
}

.register-main {
    padding: 45px 28px;
}

.register-card {
    width: min(850px, 100%);
    margin: 0 auto;
    padding: 38px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 22px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .08);
}

.register-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #777777;
    font-size: 13px;
}

.register-header h2 {
    margin-top: 7px;
    font-size: 32px;
    letter-spacing: -1px;
}

.register-header p {
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.5;
}

.alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.45;
}

.alert-error {
    background: #fff0f0;
    color: #a9151b;
    border: 1px solid #f0b8bb;
}

.form-section {
    padding: 25px 0;
    border-top: 1px solid #e5e5e5;
}

.form-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.form-section-title {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section-title > span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--black);
    color: #ffffff;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.form-section-title h3 {
    font-size: 17px;
}

.form-section-title p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.form-grid {
    display: grid;
    gap: 15px;
}

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

.address-grid {
    grid-template-columns: minmax(0, 1fr) 140px;
}

.city-grid {
    grid-template-columns: minmax(0, 1fr) 100px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 7px;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    display: block;
}

.form-group label em {
    color: #999999;
    font-style: normal;
    font-weight: 400;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    border: 1px solid #cecece;
    border-radius: 11px;
    background: #ffffff;
    color: #171717;
    outline: none;
    transition: .2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
}

.form-group input[readonly] {
    background: #f3f3f3;
    color: #666666;
}

.form-group small {
    margin-top: 6px;
    color: #888888;
    font-size: 11px;
    line-height: 1.4;
    display: block;
}

.field-status {
    min-height: 17px;
    margin-top: 5px;
    font-size: 11px;
    display: block;
}

.field-status.ok {
    color: #148a4d;
}

.field-status.error {
    color: var(--red);
}

.input-loading {
    position: relative;
}

.loading-dot {
    width: 17px;
    height: 17px;
    border: 2px solid #cccccc;
    border-top-color: var(--red);
    border-radius: 50%;
    position: absolute;
    top: 16px;
    right: 14px;
    opacity: 0;
}

.loading-dot.active {
    opacity: 1;
    animation: spin .7s linear infinite;
}

.location-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4f4f4;
    color: #666666;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.location-box strong {
    color: #333333;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 75px;
}

.password-toggle {
    height: 32px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #555555;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: 8px;
    right: 5px;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    border-radius: 20px;
    background: #e4e4e4;
    overflow: hidden;
}

.strength-bar span {
    width: 0;
    height: 100%;
    background: var(--red);
    display: block;
    transition: .2s;
}

.password-strength strong {
    margin-top: 6px;
    color: #777777;
    font-size: 11px;
    display: block;
}

.password-rules {
    margin-top: 8px;
    display: grid;
    gap: 4px;
}

.password-rules span {
    color: #999999;
    font-size: 11px;
}

.password-rules span.ok {
    color: #148a4d;
}

.terms-check {
    margin: 5px 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
}

.terms-check input {
    margin-top: 3px;
}

.primary-button,
.secondary-button,
.primary-small {
    border: 0;
    border-radius: 11px;
    font-weight: 800;
    transition: .2s;
}

.primary-button {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    background: var(--red);
    color: #ffffff;
}

.primary-button:hover,
.primary-small:hover {
    background: var(--red-hover);
}

.primary-button:disabled,
.secondary-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.secondary-button {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #222222;
}

.primary-small {
    min-height: 44px;
    padding: 0 17px;
    background: var(--black);
    color: #ffffff;
}

.login-link {
    margin-top: 25px;
    color: #777777;
    text-align: center;
    font-size: 13px;
}

.login-link a {
    color: var(--red);
    font-weight: 800;
}

.verification-flow {
    display: grid;
    gap: 14px;
}

.verification-step {
    padding: 20px;
    border: 1px solid #dddddd;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 48px 1fr 35px;
    gap: 15px;
    align-items: flex-start;
}

.verification-step.done {
    border-color: #a9dabc;
    background: #f5fff8;
}

.verification-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #f1f1f1;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
}

.verification-body h3 {
    font-size: 16px;
}

.verification-body p {
    margin-top: 5px;
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}

.verification-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.verification-step.done .verification-check {
    background: #16884d;
    color: #ffffff;
}

.code-actions {
    margin-top: 13px;
}

.code-box {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.code-input {
    width: 150px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 4px;
    outline: none;
}

.verification-message {
    min-height: 18px;
    margin-top: 8px;
    color: #777777;
    font-size: 11px;
    display: block;
}

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

.verification-message.ok {
    color: #16884d;
}

.camera-step {
    grid-template-columns: 48px 1fr;
}

.camera-box {
    width: min(460px, 100%);
    aspect-ratio: 4 / 3;
    margin-top: 15px;
    border-radius: 16px;
    background: #141414;
    overflow: hidden;
    position: relative;
}

.camera-box video,
.camera-box canvas,
.camera-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-box canvas,
.camera-box img {
    display: none;
}

.camera-placeholder {
    inset: 0;
    color: #999999;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

.camera-placeholder span {
    color: #ffffff;
    font-size: 45px;
}

.camera-placeholder strong {
    color: #ffffff;
}

.camera-placeholder small {
    padding: 0 20px;
    font-size: 11px;
}

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

.camera-actions .primary-button {
    width: auto;
    min-height: 42px;
}

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

@media (max-width: 900px) {
    .register-layout {
        display: block;
    }

    .register-side {
        min-height: auto;
        height: auto;
        padding: 25px 20px;
        position: relative;
    }

    .register-side-content {
        margin: 45px 0 15px;
    }

    .register-side-content h1 {
        font-size: 35px;
    }

    .register-side-content p {
        font-size: 14px;
    }

    .security-list {
        display: none;
    }

    .register-main {
        padding: 18px 12px 35px;
    }

    .register-card {
        padding: 25px 18px;
        border-radius: 17px;
    }
}

@media (max-width: 620px) {
    .register-header h2 {
        font-size: 27px;
    }

    .form-grid.two,
    .address-grid,
    .city-grid {
        grid-template-columns: 1fr;
    }

    .verification-step {
        grid-template-columns: 42px 1fr;
    }

    .verification-check {
        grid-column: 1 / -1;
        width: 100%;
        height: 28px;
        border-radius: 8px;
    }

    .code-box {
        flex-direction: column;
    }

    .code-input,
    .primary-small {
        width: 100%;
    }

    .location-box {
        flex-direction: column;
    }
}
