/**
 * Login — single centered card (simple & clear)
 */

body.auth-page .kisma-float-stack {
    display: none !important;
}

body.auth-page .main-content {
    align-items: center;
    justify-content: center;
}

.kisma-auth-centered-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1rem 2rem;
}

.kisma-auth-centered-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.04);
    z-index: 0;
}

.kisma-auth-centered-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.68) 100%);
}

.kisma-auth-centered-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

.kisma-auth-centered-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.75rem 1.65rem;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 24px 60px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.kisma-auth-centered-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.kisma-auth-centered-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
}

.kisma-auth-centered-brand-letter {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.kisma-auth-centered-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.kisma-auth-centered-head {
    text-align: center;
    margin-bottom: 1.35rem;
}

.kisma-auth-centered-title {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.kisma-auth-centered-sub {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
}

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

.kisma-auth-centered-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.kisma-auth-centered-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.kisma-auth-centered-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c9a227;
    text-decoration: none;
}

.kisma-auth-centered-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.kisma-auth-centered-input-wrap {
    position: relative;
}

.kisma-auth-centered-input-wrap i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.kisma-auth-centered-input-wrap .form-control {
    min-height: 46px;
    padding: 0.6rem 0.95rem 0.6rem 2.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #0f172a !important;
    background: #fff !important;
    -webkit-text-fill-color: #0f172a;
    box-shadow: none;
}

.kisma-auth-centered-input-wrap .form-control:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.kisma-auth-centered-input-wrap .form-control::placeholder {
    color: #94a3b8;
}

.kisma-auth-centered-submit {
    margin-top: 0.35rem;
    min-height: 46px;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, #c9a227 0%, #dbb84a 100%) !important;
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kisma-auth-centered-submit:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(201, 162, 39, 0.4);
}

.kisma-auth-centered-footer {
    margin: 1.25rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.kisma-auth-centered-footer a {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

.kisma-auth-centered-footer a:hover {
    color: #c9a227;
    text-decoration: underline;
}

/* Register — slightly wider card */
.kisma-auth-centered-shell--register {
    max-width: 480px;
}

.kisma-auth-centered-page--register {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
}

.kisma-auth-centered-input-wrap--select .form-select {
    min-height: 46px;
    padding: 0.6rem 0.95rem 0.6rem 2.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #0f172a;
    background-color: #fff;
    box-shadow: none;
}

.kisma-auth-centered-input-wrap--select .form-select:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.kisma-auth-centered-legal {
    margin: 0.75rem 0 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
}

.kisma-auth-centered-legal a {
    color: #64748b;
    text-decoration: underline;
}

.kisma-auth-centered-legal a:hover {
    color: #c9a227;
}

@media (max-width: 480px) {
    .kisma-auth-centered-page {
        padding: 4rem 0.85rem 1.5rem;
    }

    .kisma-auth-centered-card {
        padding: 1.5rem 1.25rem 1.35rem;
        border-radius: 16px;
    }

    .kisma-auth-centered-title {
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kisma-auth-centered-submit:hover {
        transform: none;
    }
}

/* Register / other auth pages still use split hero styles below */
.kisma-auth-hero-refined {
    flex: 1 1 44%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0f172a;
}

.kisma-auth-hero-refined-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.kisma-auth-hero-refined-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}

.kisma-auth-hero-refined .kisma-auth-login-hero-content {
    position: relative;
    z-index: 2;
    max-width: 26rem;
    padding: 2.5rem 2rem 2.75rem;
    margin: 0;
    width: 100%;
    color: #fff;
}

.kisma-auth-hero-refined-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 1.5rem;
}

.kisma-auth-hero-refined-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
}

.kisma-auth-hero-refined .kisma-auth-login-hero-glows,
.kisma-auth-hero-refined .kisma-auth-login-hero-pattern,
.kisma-auth-hero-refined .kisma-auth-login-hero-noise,
.kisma-auth-hero-refined .kisma-auth-hero-visual {
    display: none !important;
}

.kisma-auth-split-page .kisma-auth-login-form-col {
    flex: 1 1 56%;
    background: #f8fafc;
    --login-input: #ffffff;
    --login-navy: #0f172a;
}

.kisma-auth-split-page .kisma-auth-login-panel-inner {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
}

.kisma-auth-split-page .kisma-auth-login-input {
    min-height: 48px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #0f172a !important;
}

.kisma-auth-split-page .kisma-auth-login-submit {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #c9a227, #dbb84a) !important;
    color: #fff !important;
}

@media (max-width: 991px) {
    .kisma-auth-hero-refined {
        min-height: 200px;
        flex: 0 0 auto;
    }
}
