.auth-layout {
    display: grid;
    grid-template-columns:
        minmax(320px, 0.85fr)
        minmax(500px, 1.15fr);

    min-height: 100vh;
}

.auth-introduction {
    position: relative;

    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/

    min-height: 100vh;
    padding: 48px;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(54, 18, 52, 0.98),
            rgba(117, 31, 92, 0.93)
        );
}

/*.safety-note {*/
/*    position: relative;*/
/*    z-index: 1;*/

/*    display: flex;*/
/*    gap: 14px;*/
/*    align-items: center;*/

/*    max-width: 410px;*/
/*    margin-top: 28px;*/
/*    padding: 16px;*/

/*    border: 1px solid rgba(255, 255, 255, 0.15);*/
/*    border-radius: var(--radius-medium);*/

/*    background: rgba(255, 255, 255, 0.08);*/
/*    backdrop-filter: blur(8px);*/
/*}*/

/*.auth-introduction {*/
/*    position: relative;*/

/*    display: flex;field-help*/
/*    flex-direction: column;*/
/*    justify-content: space-between;*/

/*    min-height: 100vh;*/
/*    padding: 48px;*/

/*    color: #ffffff;*/

/*    background:*/
/*        linear-gradient(*/
/*            145deg,*/
/*            rgba(54, 18, 52, 0.98),*/
/*            rgba(117, 31, 92, 0.93)*/
/*        );*/
/*}*/

.auth-introduction::before {
    position: absolute;
    top: 15%;
    right: -80px;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    content: "";
}

.auth-introduction::after {
    position: absolute;
    bottom: 10%;
    left: -100px;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.05);

    content: "";
}

.brand,
.mobile-brand {
    position: relative;
    z-index: 1;

    margin: 0;

    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.brand span,
.mobile-brand span {
    color: #ff8cb0;
}

.brand:hover {
    text-decoration: none;
}

.auth-introduction-content {
    position: relative;
    z-index: 1;

    max-width: 500px;
}

.eyebrow {
    margin: 0 0 18px;

    color: #ffb0c9;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.auth-introduction h1 {
    margin: 0 0 20px;

    font-size: clamp(38px, 4.2vw, 64px);
    line-height: 1.04;
    letter-spacing: -2.5px;
}

.auth-introduction-content > p:last-child {
    margin: 0;

    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 1.7;
}

.safety-note {
    position: relative;
    z-index: 1;

    display: flex;
    gap: 14px;
    align-items: center;

    max-width: 410px;
    padding: 16px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.safety-icon {
    display: grid;
    flex: 0 0 48px;
    place-items: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    color: var(--secondary-dark);
    font-weight: 800;

    background: #ffb0c9;
}

.safety-note strong {
    display: block;
    margin-bottom: 4px;
}

.safety-note p {
    margin: 0;

    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 42px 30px;

    background:
        radial-gradient(
            circle at top right,
            #fff1f6,
            transparent 36%
        ),
        var(--background);
}

.auth-card {
    width: min(100%, 760px);
    padding: 42px;

    border: 1px solid rgba(231, 226, 232, 0.8);
    border-radius: var(--radius-large);

    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card-heading {
    margin-bottom: 30px;
}

.auth-card-heading h2 {
    margin: 0 0 8px;

    font-size: 32px;
    letter-spacing: -1px;
}

.auth-card-heading > p:last-child {
    margin: 0;

    color: var(--text-muted);
}

.mobile-brand {
    display: none;
    margin-bottom: 24px;

    color: var(--secondary);
}

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

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

.form-group label:not(.checkbox-label) {
    display: inline-block;
    margin-bottom: 8px;

    color: #3a323d;
    font-size: 14px;
    font-weight: 650;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;

    color: var(--text);
    background: #ffffff;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(232, 62, 116, 0.1);
}

.form-group input.input-error,
.form-group select.input-error {
    border-color: var(--danger);

    background: #fffafa;
}

.form-group input.input-error:focus,
.form-group select.input-error:focus {
    box-shadow:
        0 0 0 4px rgba(198, 40, 40, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;

    padding: 6px;

    border: 0;

    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;

    background: transparent;

    transform: translateY(-50%);
}

.field-help {
    margin: 7px 0 0;

    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.phone-privacy-notice {
    display: flex;
    gap: 6px;
    align-items: flex-start;

    margin-top: 8px;

    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.phone-privacy-notice::before {
    content: "🔒";
    flex: 0 0 auto;
    font-size: 11px;
}

.field-error {
    display: block;
    min-height: 17px;
    margin-top: 6px;

    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.checkbox-group {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;

    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.checkbox-label input {
    flex: 0 0 auto;

    width: 17px;
    min-height: auto;
    height: 17px;
    margin-top: 2px;

    accent-color: var(--primary);
}

.primary-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;
    padding: 0 22px;

    border: 0;
    border-radius: var(--radius-small);

    color: #ffffff;
    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 12px 24px rgba(200, 36, 90, 0.2);

    transition:
        transform 160ms ease,
        opacity 160ms ease,
        box-shadow 160ms ease;
}

.primary-button:hover:not(:disabled) {
    box-shadow:
        0 15px 30px rgba(200, 36, 90, 0.28);

    transform: translateY(-1px);
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.button-spinner {
    display: none;

    width: 19px;
    height: 19px;

    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: spin 650ms linear infinite;
}

.primary-button.is-loading .button-text {
    display: none;
}

.primary-button.is-loading .button-spinner {
    display: block;
}

.form-alert {
    margin-bottom: 22px;
    padding: 13px 15px;

    border: 1px solid transparent;
    border-radius: var(--radius-small);

    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.form-alert-error {
    border-color: #ffd0d0;

    color: var(--danger);
    background: var(--danger-soft);
}

.form-alert-success {
    border-color: #c6f4dc;

    color: var(--success);
    background: var(--success-soft);
}

.auth-switch {
    margin: 24px 0 0;

    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

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

@media (max-width: 950px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-introduction {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 28px 18px;
    }

    .mobile-brand {
        display: block;
    }
}

@media (max-width: 650px) {
    .auth-panel {
        align-items: flex-start;
        padding: 0;

        background: var(--surface);
    }

    .auth-card {
        min-height: 100vh;
        padding: 28px 20px;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .auth-card-heading h2 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.auth-card-login {
    max-width: 540px;
}

.label-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.small-link {
    margin-bottom: 8px;

    font-size: 12px;
}

.verification-layout {
    display: grid;
    min-height: 100vh;
    padding: 30px;
    place-items: center;

    background:
        radial-gradient(
            circle at top left,
            rgba(232, 62, 116, 0.13),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(99, 38, 94, 0.12),
            transparent 36%
        ),
        var(--background);
}

.verification-card {
    width: min(100%, 500px);
    padding: 42px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);
    box-shadow: var(--shadow);
}

.verification-header {
    margin-bottom: 28px;
    text-align: center;
}

.verification-brand {
    display: inline-block;
    margin-bottom: 26px;

    color: var(--secondary);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.verification-brand span {
    color: var(--primary);
}

.verification-brand:hover {
    text-decoration: none;
}

.verification-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    place-items: center;

    border-radius: 50%;

    color: #ffffff;
    font-size: 26px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:
        0 12px 24px
        rgba(200, 36, 90, 0.22);
}

.verification-header h1 {
    margin: 0 0 10px;

    font-size: 29px;
    letter-spacing: -0.8px;
}

.verification-header p {
    margin: 0;

    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.verification-code-input {
    height: 62px !important;

    font-size: 28px !important;
    font-weight: 700;
    letter-spacing: 9px;
    text-align: center;
}

.verification-actions {
    margin-top: 24px;
    text-align: center;
}

.verification-actions p {
    margin: 0 0 6px;

    color: var(--text-muted);
    font-size: 13px;
}

.text-button {
    padding: 6px 10px;

    border: 0;

    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 700;

    background: transparent;
}

.text-button:disabled {
    cursor: not-allowed;
    color: var(--text-muted);
}

.verification-divider {
    height: 1px;
    margin: 26px 0;

    background: var(--border);
}

.secondary-button {
    width: 100%;
    min-height: 48px;
    padding: 0 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    color: var(--text);
    font-weight: 650;

    background: var(--surface);
}

.secondary-button:hover:not(:disabled) {
    border-color: var(--primary);

    color: var(--primary-dark);
    background: var(--primary-soft);
}

.secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 550px) {
    .verification-layout {
        padding: 0;

        background: var(--surface);
    }

    .verification-card {
        min-height: 100vh;
        padding: 30px 20px;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }
}