.auth-flow-shell {
    margin: 2.5rem auto 4rem;
    padding: 0 1rem;
}

.auth-flow-panel {
    border: 1px solid rgba(28, 43, 58, 0.08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(26, 38, 52, 0.12);
}

.auth-flow-panel {
    background:
        radial-gradient(circle at top right, rgba(215, 116, 37, 0.12), transparent 34%),
        linear-gradient(145deg, #fffef8 0%, #ffffff 56%, #f6f8fb 100%);
}

.auth-flow-panel--single {
    max-width: 100%;
}


.auth-flow-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.92);
}

.auth-flow-form-wrap--single {
    min-height: 100%;
}

.auth-flow-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 194, 39, 0.14);
    color: #8b5100;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-flow-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffcc1a, #ff9500);
    color: #111;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 162, 0, 0.22);
}

.auth-flow-title {
    margin: 0 0 0.5rem;
    color: #16212b;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.15;
}

.auth-flow-text {
    margin: 0;
    color: #627181;
    line-height: 1.7;
}

.auth-flow-text--compact {
    max-width: 34rem;
}

.auth-flow-provider-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 3.35rem;
    margin-top: 1.4rem;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 148, 0, 0.22);
    background: linear-gradient(135deg, #ffd84f, #ffb92a);
    color: #231500;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(255, 174, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-flow-provider-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(255, 174, 0, 0.24);
}

.auth-flow-provider-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.auth-flow-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.2rem 0 1.1rem;
    color: #748394;
    font-size: 0.9rem;
}

.auth-flow-divider::before,
.auth-flow-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(28, 43, 58, 0.1);
}

.auth-flow-divider span {
    flex: 0 0 auto;
}

.auth-flow-form {
    margin-top: 0.25rem;
}

.auth-flow-autofill-trap {
    position: absolute;
    left: -99999px;
    opacity: 0;
    pointer-events: none;
}

.auth-flow-error {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: #fff3f1;
    border: 1px solid #f4c7c1;
    color: #8d3a2f;
}

.auth-flow-error p {
    margin: 0 0 0.4rem;
}

.auth-flow-error p:last-child {
    margin-bottom: 0;
}

.auth-flow-field {
    margin-bottom: 1rem;
}

.auth-flow-field label {
    display: block;
    margin-bottom: 0.45rem;
    color: #16212b;
    font-weight: 700;
}

.auth-flow-field input[type="text"],
.auth-flow-field input[type="email"],
.auth-flow-field input[type="password"] {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(28, 43, 58, 0.14);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-flow-field input[type="text"]:focus,
.auth-flow-field input[type="email"]:focus,
.auth-flow-field input[type="password"]:focus {
    outline: none;
    border-color: rgba(221, 118, 28, 0.45);
    box-shadow: 0 0 0 4px rgba(221, 118, 28, 0.12);
}

.auth-flow-field input[type="text"]:disabled,
.auth-flow-field input[type="email"]:disabled,
.auth-flow-field input[type="password"]:disabled {
    background: #f4f6f8;
    color: #5b6876;
    border-color: rgba(28, 43, 58, 0.1);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.auth-flow-field small {
    display: block;
    margin-top: 0.45rem;
    color: #627181;
    line-height: 1.5;
}

.auth-flow-check {
    margin: 0 0 0.95rem;
    padding: 1rem 1rem 1rem 3.15rem;
    position: relative;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfcfe);
    border: 1px solid rgba(28, 43, 58, 0.09);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-flow-check:hover {
    transform: translateY(-1px);
    border-color: rgba(221, 118, 28, 0.18);
    box-shadow: 0 14px 24px rgba(26, 38, 52, 0.06);
}

.auth-flow-check input[type="checkbox"] {
    position: absolute;
    top: 1.15rem;
    left: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    accent-color: #d97706;
}

.auth-flow-check label {
    display: block;
    margin: 0;
    color: #213244;
    line-height: 1.65;
    cursor: pointer;
}

.auth-flow-link {
    color: #b85b00;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(184, 91, 0, 0.25);
}

.auth-flow-link:hover {
    color: #8f4600;
    border-bottom-color: rgba(143, 70, 0, 0.4);
}

.auth-flow-field-error {
    margin-top: 0.55rem;
    color: #b33d2e;
    font-size: 0.9rem;
}

.auth-flow-actions {
    margin-top: 1.35rem;
    display: grid;
    gap: 0.8rem;
}

.auth-flow-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.95rem 1.2rem;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #d97706, #ef8f1a);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-flow-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(217, 119, 6, 0.28);
}

.auth-flow-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #59697a;
    text-decoration: none;
    font-weight: 600;
}

.auth-flow-secondary-link:hover {
    color: #27384a;
}

.auth-flow-footer {
    margin-top: 1.25rem;
    text-align: center;
    color: #627181;
}

.auth-flow-footer p {
    margin: 0;
}

@media (max-width: 640px) {
    .auth-flow-shell {
        margin-top: 1.5rem;
        padding: 0 0.35rem;
    }

    .auth-flow-form-wrap {
        padding: 1.35rem;
    }

    .auth-flow-check {
        padding-left: 2.8rem;
    }

    .auth-flow-provider-link {
        min-height: 3.1rem;
    }
}
