/* project-root/public/shop/assets/css/konto.css */

.account-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.account-box-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.info-box h4 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.info-box p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.panel-dark {
    background: var(--dark);
    color: #fff;
}

.panel-dark p {
    color: #d4d4d8;
}

.account-auth-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    align-items: start;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 24px;
}

.auth-card-register {
    min-height: 100%;
}

.auth-card-head h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.auth-card-head p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.account-notice {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.account-notice.is-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.account-notice.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.account-notice.is-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field span {
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
}

.auth-field input {
    width: 100%;
    min-height: 56px;
    border: 2px solid #111827;
    border-radius: 16px;
    padding: 0 18px;
    background: #fff;
    color: #09090b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 31, 38, 0.12);
}

.auth-field-plain {
    margin-bottom: 2px;
}

.auth-field-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-helper-box {
    margin-top: 18px;
    padding: 18px;
    background: #f7f7f8;
    border-radius: 18px;
    border: 1px solid #ededf0;
}

.auth-helper-box strong {
    display: block;
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.4;
}

.register-stepper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 26px;
}

.register-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    flex: 0 0 auto;
}

.register-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #d4d4d8;
    background: #fff;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.register-step-label {
    max-width: 120px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #a1a1aa;
}

.register-step-line {
    flex: 1 1 auto;
    height: 2px;
    margin-top: 16px;
    background: #d4d4d8;
    border-radius: 999px;
}

.register-step.is-active .register-step-number {
    border-color: #000;
    background: #000;
    color: #fff;
}

.register-step.is-active .register-step-label {
    color: #000;
}

.register-step.is-complete .register-step-number {
    border-color: #d4d4d8;
    background: #fff;
    color: #8b8b90;
}

.register-step.is-complete .register-step-label {
    color: #8b8b90;
}

.register-info-text {
    margin-bottom: 14px;
    color: #3f3f46;
    line-height: 1.8;
}

.register-inline-actions {
    margin: 0 0 12px;
}

.register-text-button {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    color: #111827;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.register-text-button:hover {
    color: var(--primary);
}

.otp-form {
    gap: 20px;
}

.otp-boxes {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 56px));
}

.otp-digit {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #09090b;
    outline: none;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.otp-digit:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 3px rgba(214, 31, 38, 0.12);
}

.account-dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.account-dashboard-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #f4f4f5;
    color: #3f3f46;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .account-box-grid,
    .auth-field-grid {
        grid-template-columns: 1fr;
    }

    .account-dashboard-head {
        flex-direction: column;
    }

    .register-stepper {
        gap: 8px;
    }

    .register-step-label {
        max-width: 84px;
        font-size: 12px;
    }

    .otp-boxes {
        gap: 8px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .otp-digit {
        width: 100%;
        min-width: 0;
        height: 52px;
        font-size: 22px;
    }
}