body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Apercu", system-ui, sans-serif;
    background: linear-gradient(155deg, #2e2b8f 0%, #8988bf 50%, #2e2b8f 100%);
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

body.login-page::before {
    display: none;
}

.login-page .layout-menu-toggle .menu-toggle-icon::before {
    content: "" !important;
}

.login-page #template-customizer {
    display: none !important;
}

.login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    z-index: 1;
}

.login-content {
    width: 100%;
    max-width: 448px;
}

.login-branding {
    text-align: center;
    margin-bottom: 32px;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    color: #2e2b8f;
    font-size: 2rem;
}

.login-logo {
    max-width: 34px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.login-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 400;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
}

.login-form {
    margin: 0;
}

.login-field + .login-field {
    margin-top: 24px;
}

.login-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.login-label {
    text-transform: none !important;
}

.login-input {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 2px solid #d1d5db;
    border-radius: 25px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.login-input:focus-within {
    border-color: #2e2b8f;
}

.login-input:focus-within .login-input-icon {
    color: #2e2b8f;
}

.login-input-icon {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.login-control {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #374151 !important;
    font-size: 1rem;
    padding: 13px 16px 13px 0 !important;
}

.login-control::placeholder {
    color: #9ca3af;
}

.login-response {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

.login-response.is-visible {
    display: block;
}

.login-response.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #0f8f42;
}

.login-response.is-error {
    background: rgba(237, 76, 103, 0.12);
    color: #b42344;
}

.login-submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #2e2b8f;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.9rem 1.5rem;
    margin-top: 24px;
    box-shadow: 0 16px 28px rgba(46, 43, 143, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
    color: #ffffff;
    transform: translateY(-1px);
    background: #2e2b8f;
    box-shadow: 0 20px 34px rgba(46, 43, 143, 0.24);
}

.login-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-demo {
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.login-demo-title {
    margin: 0 0 8px;
    color: #1e3a8a;
    font-size: 0.75rem;
    font-weight: 600;
}

.login-demo-line {
    margin: 0;
    color: #1d4ed8;
    font-size: 0.75rem;
    line-height: 1.6;
}

.login-demo-line + .login-demo-line {
    margin-top: 2px;
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    color: #6b7280;
    font-size: 0.75rem;
    text-align: center;
}

.login-security-icon {
    line-height: 1;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
}

.login-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer-link:hover,
.login-footer-link:focus {
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .login-layout {
        padding: 16px;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .login-card {
        padding: 24px;
    }

    .login-input {
        min-height: 48px;
    }

    .login-input-icon {
        width: 40px;
    }

    .login-security-note {
        align-items: center;
    }
}

button.login-submit,
.btn.login-submit {
    background-color: #2e2b8f !important;
    color: #ffffff !important;
    border: none !important;
}
