/* ── Authentication pages (login, register, password) ── */
.auth-skin {
    min-height: 100vh;
    color: #1e293b;
}

.auth-skin.auth-with-chrome {
    background: #fff;
}

.auth-skin.auth-with-chrome > .cibato-main-wrapper {
    min-height: 100vh;
}

.auth-page-chrome__main {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 56px;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 50%),
        linear-gradient(165deg, #f4f7fb 0%, #eef2f7 45%, #e9eef5 100%);
}

.auth-page-chrome__main .auth-page {
    width: 100%;
}

@media (max-width: 1199.98px) {
    .auth-with-chrome {
        padding-bottom: 84px;
    }
}

.auth-skin .auth-page__container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* ── Form-only auth (no hero image) ── */
.auth-skin .auth-page--form-only .auth-page__container {
    max-width: 460px;
}

.auth-skin .auth-page--form-only.auth-page--free .auth-page__container {
    max-width: 500px;
}

.auth-skin .auth-page--form-only.auth-page--focused .auth-page__container {
    max-width: 420px;
}

.auth-skin .auth-page--form-only .auth-page__panel {
    padding: 28px 32px !important;
}

.auth-skin .auth-page--form-only .auth-page__panel-inner {
    max-width: 100%;
    margin: 0 auto;
}


.auth-skin .auth-page__card {
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 24px !important;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 24px 48px -12px rgba(15, 23, 42, 0.14);
}

.auth-skin .auth-page__visual {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8edf3 0%, #f1f5f9 50%, #e9eef5 100%);
}

.auth-skin .auth-page__visual-inner {
    position: absolute;
    inset: 0;
}

.auth-skin .auth-page__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.auth-skin .auth-page__visual-inner--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-skin .auth-page__visual-inner--empty img {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    max-width: 38%;
    max-height: 38%;
    object-fit: contain;
    opacity: 0.42;
}

.auth-skin .auth-page__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.auth-skin .auth-page--image-right .auth-page__visual::after {
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.04) 0%, transparent 40%);
}

.auth-skin .auth-page__panel {
    border: 0 !important;
    height: auto !important;
    background: #fff;
}

.auth-skin .auth-page__panel-inner {
    max-width: 400px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.auth-skin .auth-page--panel-wide .auth-page__container {
    max-width: 980px;
}

.auth-skin .auth-page--panel-wide .auth-page__panel-inner {
    max-width: 420px;
}

@media (max-width: 991.98px) {
    .auth-skin .auth-page__panel-inner {
        margin-left: auto;
        margin-right: auto;
    }
}

.auth-skin .auth-page__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 20px;
}

.auth-skin .auth-page--form-only.auth-page--free .auth-page__brand,
.auth-skin .auth-page--form-only.auth-page--focused .auth-page__brand,
.auth-skin .auth-page__brand.text-center {
    align-items: center;
    text-align: center;
}

@media (max-width: 991.98px) {
    .auth-skin .auth-page__brand {
        align-items: center;
        text-align: center;
    }
}

.auth-skin .auth-page__brand-logo {
    margin-bottom: 16px;
    line-height: 0;
}

.auth-skin .auth-page__brand-logo img {
    display: block;
    max-height: 44px;
    max-width: min(200px, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-skin .auth-page__brand-text {
    width: 100%;
}

.auth-skin .auth-page__title {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    text-transform: none !important;
    letter-spacing: -0.02em;
}

.auth-skin .auth-page__subtitle {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.5;
}

.auth-skin .auth-page__form-wrap {
    padding-top: 8px;
}

.auth-skin .form-group {
    margin-bottom: 1.1rem;
}

.auth-skin .form-group label,
.auth-skin .fs-12.fw-700.text-soft-dark {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px;
}

.auth-skin .form-control {
    min-height: 48px;
    padding: 0.65rem 1rem;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff;
    font-size: 0.9375rem;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-skin .form-control::placeholder {
    color: #94a3b8;
}

.auth-skin .form-control:focus {
    border-color: color-mix(in srgb, var(--primary) 55%, #e2e8f0) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent) !important;
}

.auth-skin .position-relative .password-toggle {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auth-skin .position-relative .password-toggle:hover {
    color: var(--primary);
}

.auth-skin .btn-primary.submit-button,
.auth-skin .btn-primary.btn-block {
    min-height: 50px;
    border: 0;
    border-radius: 12px !important;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--primary) 45%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-skin .btn-primary.submit-button:hover,
.auth-skin .btn-primary.btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--primary) 50%, transparent);
}

.auth-skin .btn-primary.submit-button:disabled,
.auth-skin .btn-primary.submit-button[disabled] {
    background-color: color-mix(in srgb, var(--primary) 72%, #94a3b8);
    border-color: transparent;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.auth-skin .cibato-checkbox .cibato-square-check {
    border-radius: 6px;
}

.auth-skin .auth-page__meta-row {
    margin-bottom: 1.25rem;
}

.auth-skin .auth-page__footer-text {
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

.auth-skin .auth-page__footer-text a,
.auth-skin .animate-underline-primary {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-skin .auth-page__footer-text a:hover,
.auth-skin .animate-underline-primary:hover {
    text-decoration: underline;
}

.auth-skin .auth-page__shell {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.auth-skin .auth-page__actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px;
}

.auth-skin .auth-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-left: 0;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    max-width: fit-content;
}

.auth-skin .auth-page__back:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 30%, #e2e8f0);
    background: #fff;
    text-decoration: none;
}

.auth-skin .social.colored a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.auth-skin .bg-white.fs-12.text-gray {
    position: relative;
    display: block;
    text-align: center;
    color: #94a3b8 !important;
    margin: 1.25rem 0;
}

.auth-skin .bg-white.fs-12.text-gray::before,
.auth-skin .bg-white.fs-12.text-gray::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #e2e8f0;
}

.auth-skin .bg-white.fs-12.text-gray::before { left: 0; }
.auth-skin .bg-white.fs-12.text-gray::after { right: 0; }

/* ── Layout: Boxed (centered card) ── */
.auth-layout-boxed .auth-page--boxed .col-xxl-6 {
    max-width: 100%;
}

.auth-layout-boxed .auth-page--boxed.auth-page--form-only .auth-page__card {
    min-height: auto;
}

@media (max-width: 991.98px) {
    .auth-layout-boxed .auth-page--boxed .right-content {
        margin-top: -48px !important;
        border-radius: 24px 24px 0 0 !important;
        min-height: auto !important;
        padding: 32px 24px 28px !important;
        position: relative;
        z-index: 2;
        box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
    }

    .auth-layout-boxed .auth-page--boxed .auth-page__visual {
        min-height: 220px;
    }
}

/* ── Layout: Free (split screen) ── */
.auth-layout-free .cibato-main-wrapper section {
    min-height: calc(100vh - 48px) !important;
}

.auth-layout-free .cibato-main-wrapper .row[style*="min-height"] {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.14);
    background: #fff;
    margin: 0 auto;
    max-width: 1400px;
}

.auth-layout-free .right-content {
    padding: 0 !important;
    min-height: 100%;
}

.auth-layout-free .auth-page__visual {
    min-height: 280px;
}

@media (min-width: 992px) {
    .auth-layout-free .auth-page__visual {
        min-height: 100%;
    }
}

@media (min-width: 992px) {
    .auth-layout-free .col-xxl-6.col-lg-7 img,
    .auth-layout-free .col-xxl-6.col-lg-7 .h-100 img {
        border-radius: 0;
    }
}

/* ── Layout: Focused (narrow form column) ── */
.auth-layout-focused .cibato-main-wrapper .row.no-gutters {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.auth-layout-focused .right-content {
    padding: 32px 28px !important;
    background: #fff;
    border-radius: 24px 0 0 24px;
    box-shadow: -8px 0 32px rgba(15, 23, 42, 0.06);
    min-height: 100vh;
}

@media (max-width: 991.98px) {
    .auth-layout-focused .right-content {
        border-radius: 24px 24px 0 0;
        margin-top: -40px;
        min-height: auto !important;
    }
}

/* ── Admin login (simple, separate from storefront) ── */
.auth-admin-skin {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 55%),
        linear-gradient(165deg, #f4f7fb 0%, #eef2f7 45%, #e9eef5 100%);
}

.auth-admin-simple {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-admin-simple__card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 40px 36px 32px;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 24px 48px -12px rgba(15, 23, 42, 0.14);
}

.auth-admin-simple__card .auth-page__brand {
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.auth-admin-simple__store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.auth-admin-simple__store-link:hover {
    text-decoration: underline;
    color: var(--hov-primary);
}
