.landing-signup {
    min-height: calc(100vh - 200px);
    padding: 80px 0;
    background: #f8f8f6;
}

.landing-signup-container {
    max-width: 1100px;
}

.landing-signup-card, .landing-feedback-card {
    padding: 40px;
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(28, 68, 49, .06);
}

.landing-signup-intro p, .landing-feedback-text p {
    margin-bottom: 10px;
    color: var(--landing-secondary);
    line-height: 1.8;
}

.landing-signup-intro p:last-child, .landing-feedback-text p:last-child {
    margin-bottom: 0;
}

.landing-signup-intro strong {
    color: var(--landing-primary);
}

.landing-form-section {
    min-width: 0;
    margin: 35px 0 0;
    padding: 0;
    border: 0;
}

.landing-form-section legend {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 12px;
    color: var(--landing-primary);
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.landing-form-grid {
    display: grid;
    gap: 20px;
    min-width: 0;
    margin-bottom: 20px;
}

.landing-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-form-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-form-grid-address {
    grid-template-columns: 1.8fr 1fr 1fr;
}

.landing-form-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.landing-form-field label {
    font-size: 14px;
    font-weight: 600;
}

.landing-form-field input,
.landing-form-field select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    color: var(--landing-primary);
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.landing-form-field input:focus,
.landing-form-field select:focus {
    outline: 0;
    border-color: var(--landing-secondary);
    box-shadow: 0 0 0 3px rgba(75, 129, 80, .14);
}

.landing-form-field input[aria-invalid="true"] {
    border-color: #b42318;
}

.landing-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%234b8150' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.landing-password-field {
    position: relative;
    display: flex;
}

.landing-password-field input {
    padding-right: 48px;
}

.landing-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    padding: 6px;
    color: var(--landing-secondary);
    background: none;
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
}

.landing-password-toggle:focus-visible {
    outline: 2px solid var(--landing-secondary);
    outline-offset: 2px;
}

.landing-field-error {
    min-height: 18px;
    color: #b42318;
    font-size: 12px;
}

.landing-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 35px;
}

.landing-form-actions .landing-button {
    cursor: pointer;
}

.landing-button-dark {
    color: #fff;
    background: #1c1c1c;
}

.landing-button-dark:hover {
    color: #fff;
    background: #333;
}

.landing-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.landing-preloader {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .78);
}

.landing-preloader.is-visible {
    display: flex;
}

.landing-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(28, 68, 49, .2);
    border-top-color: var(--landing-primary);
    border-radius: 50%;
    animation: landing-spin .7s linear infinite;
}

.landing-feedback-card {
    text-align: center;
}

.landing-feedback-text a {
    color: var(--landing-primary);
    text-decoration: none;
    font-weight: 500;
}

.landing-feedback-text a:hover {
    text-decoration: underline;
}

.landing-feedback-svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke-miterlimit: 10;
    margin: 0 auto 1rem;
}

.svg-success {
    stroke: var(--landing-primary);
    box-shadow: inset 0px 0px 0px var(--landing-primary);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.svg-error {
    stroke: var(--landing-error);
    box-shadow: inset 0 0 0 var(--landing-error);
    animation: fillError .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.landing-feedback-svg__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    fill: #fff;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.svg-success__circle {
    stroke: var(--landing-primary);
}

.svg-error__circle {
    stroke: var(--landing-error);
}

.landing-feedback-success__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.landing-feedback-error__line {
    fill: none;
    stroke: var(--landing-error);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
}

.landing-feedback-error__line--1 {
    animation: stroke .25s ease .75s forwards;
}

.landing-feedback-error__line--2 {
    animation: stroke .25s ease 1s forwards;
}

@keyframes landing-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px var(--landing-primary);
    }
}

@media (max-width: 992px) {
    .landing-form-grid-3,
    .landing-form-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-form-grid-address {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-form-grid-address .landing-form-field:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .landing-signup {
        padding: 60px 0;
    }

    .landing-signup-card, .landing-feedback-card {
        padding: 24px;
    }

    .landing-form-grid-2,
    .landing-form-grid-3,
    .landing-form-grid-4,
    .landing-form-grid-address {
        grid-template-columns: 1fr;
    }

    .landing-form-grid-address .landing-form-field:first-child {
        grid-column: auto;
    }

    .landing-form-actions {
        flex-direction: column-reverse;
    }

    .landing-form-actions .landing-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-spinner {
        animation-duration: 1.4s;
    }
}
