/* Modern minimal SaaS auth layout */
.custom-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 100%;
    min-height: 100vh;
    background: #f8fafc;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(var(--bs-primary-rgb), 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--bs-primary-rgb), 0.04) 0%, transparent 50%);
}

.custom-login.has-auth-bg {
    background-image: var(--auth-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-login.has-auth-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.82);
    z-index: 0;
}

.custom-login.has-auth-bg .custom-login-inner {
    position: relative;
    z-index: 1;
}

.custom-login .custom-login-inner {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}

.custom-login .dash-header {
    position: relative;
    left: 0;
    top: 0;
    right: 0;
    box-shadow: none;
    min-height: auto;
    background: transparent;
}

.custom-login .dash-header .dash-h-item {
    min-height: auto;
}

.custom-login .dash-header .navbar-brand {
    padding: 0;
}

.custom-login .dash-header .navbar-brand a {
    display: block;
    line-height: 1;
}

.custom-login .navbar {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0 0;
}

.custom-login .navbar .navbar-collapse {
    justify-content: flex-end;
}

.custom-login .navbar .nav-link {
    padding: 4px 14px;
    position: relative;
    font-weight: 500;
    font-size: 0.875rem;
    color: #64748b;
}

.custom-login .navbar .nav-link:hover {
    color: #334155;
}

.custom-login .navbar .nav-item .nav-link::after {
    display: none;
}

.custom-login .card {
    margin-bottom: 0;
    background-color: transparent;
    width: 100%;
    border: none;
    box-shadow: none;
}

.custom-login .custom-wrapper {
    padding: 32px 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0 auto;
}

.custom-login .custom-wrapper .custom-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.custom-login .custom-wrapper .card .card-body {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 36px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

.custom-login .auth-card-header {
    margin-bottom: 1.75rem;
}

.custom-login .auth-card-header h2 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.custom-login .auth-card-subtitle {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.custom-login .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.375rem;
}

.custom-login .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-login .form-control::placeholder {
    color: #94a3b8;
}

.custom-login .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}

.custom-login .btn-primary {
    border-radius: 8px;
    padding: 0.6875rem 1rem;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

.custom-login a {
    color: var(--bs-primary);
}

.custom-login .custom-wrapper .card .card-body h2 span {
    color: var(--bs-primary);
    font-weight: 400;
}

.custom-login .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.custom-login .custom-login-form .for-pwd {
    font-size: 13px;
    line-height: 1;
}

.custom-login .custom-login-form .login-btn {
    margin-bottom: 20px;
}

.custom-login .custom-login-form .remember-check {
    font-size: 13px;
}

.custom-login .custom-login-form .field-icon {
    position: absolute;
    top: 58%;
    right: 10px;
    line-height: 1;
}

.custom-login .custom-login-form .pss-field {
    position: relative;
}

.custom-login .autorized-btn {
    gap: 15px;
    justify-content: space-between;
    margin-top: 20px;
}

.custom-login .autorized-btn .btn {
    max-width: 47%;
    width: 100%;
}

.custom-login .drp-language .drp-text {
    margin-right: 5px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.custom-login .drp-language a span {
    color: #334155 !important;
}

.custom-login .dropdown-toggle::after {
    content: "";
    position: absolute;
    height: 6px;
    width: 9px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: url(../images/down-arrow.svg);
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all ease-in-out 0.3s;
    border: 0;
}

.custom-login .drp-language .btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0;
    padding: 8px 28px 8px 12px;
    font-size: 0.8125rem;
}

.custom-login .drp-language .btn.show {
    border-color: #cbd5e1;
}

.custom-login .custom-img img {
    max-width: 100%;
    width: 100%;
    margin: auto;
    display: block;
}

.auth-footer {
    position: relative;
    text-align: center;
    padding: 16px 0 8px;
}

.auth-footer span {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.dash-header:not(.transprent-bg) {
    left: auto !important;
}

@media only screen and (max-width: 991px) {
    .custom-login .custom-wrapper {
        padding: 24px 0 16px;
    }

    .auth-footer {
        text-align: center;
    }
}

@media only screen and (max-width: 767px) {
    .custom-login .dash-header .navbar-brand {
        max-width: 140px;
    }

    .custom-login .navbar .nav-link {
        padding: 8px 16px;
    }

    .custom-login .custom-wrapper .card .card-body {
        padding: 28px 20px;
    }

    .custom-login .navbar .navbar-collapse {
        text-align: center;
        margin-top: 12px;
    }

    .custom-login .dash-header .dash-h-item {
        display: block;
    }

    .custom-login .drp-language a {
        text-align: center;
    }
}

@media only screen and (max-width: 575px) {
    .custom-login .autorized-btn .btn {
        max-width: 100%;
    }

    .custom-login .custom-login-inner {
        padding: 16px;
    }

    .custom-login-inner .dash-header {
        top: auto !important;
    }
}

.turnstile-field {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    min-height: 65px;
}

.turnstile-field .cf-turnstile {
    display: inline-block;
}
